summaryrefslogtreecommitdiff
path: root/spec/integration/knife
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-06-12 18:58:12 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-12 19:00:29 -0700
commit83ad7d9aeb3f7c4b752dd92d4ca1f3671a0ab9ac (patch)
tree7c235265fe1aa8cd0bd9fe2d61d8fc48310b5982 /spec/integration/knife
parentdffa2a661ec1f63de1acf3f6d97b99960ec65ada (diff)
downloadchef-83ad7d9aeb3f7c4b752dd92d4ca1f3671a0ab9ac.tar.gz
Fix knife upload tests on Ruby 1.8.7
Diffstat (limited to 'spec/integration/knife')
-rw-r--r--spec/integration/knife/upload_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb
index c699dc2a56..fbb7b0d7fb 100644
--- a/spec/integration/knife/upload_spec.rb
+++ b/spec/integration/knife/upload_spec.rb
@@ -220,7 +220,7 @@ Created /data_bags/x/y.json
EOM
knife('diff --name-status /data_bags').should_succeed <<EOM
EOM
- JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false).keys.should == [ 'id', 'foo' ]
+ JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false).keys.sort.should == [ 'foo', 'id' ]
end
end
@@ -233,7 +233,7 @@ Created /data_bags/x/y.json
EOM
knife('diff --name-status /data_bags').should_succeed ''
result = JSON.parse(knife('raw /data/x/y').stdout, :create_additions => false)
- result.keys.should == [ 'id', 'chef_type', 'data_bag' ]
+ result.keys.sort.should == [ 'chef_type', 'data_bag', 'id' ]
result['chef_type'].should == 'aaa'
result['data_bag'].should == 'bbb'
end