summaryrefslogtreecommitdiff
path: root/spec/unit/knife/core/node_editor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/knife/core/node_editor_spec.rb')
-rw-r--r--spec/unit/knife/core/node_editor_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/core/node_editor_spec.rb b/spec/unit/knife/core/node_editor_spec.rb
index 493de3c5b1..5ddc2d0067 100644
--- a/spec/unit/knife/core/node_editor_spec.rb
+++ b/spec/unit/knife/core/node_editor_spec.rb
@@ -44,10 +44,10 @@ describe Chef::Knife::NodeEditor do
describe "#view" do
it "returns a Hash with only the name, chef_environment, normal, " +
"policy_name, policy_group, and run_list properties" do
- expected = node_data.select do |key,|
+ expected = node_data.select { |key,|
%w{ name chef_environment normal
policy_name policy_group run_list }.include?(key)
- end
+ }
expect(subject.view).to eq(expected)
end