diff options
author | John Keiser <jkeiser@opscode.com> | 2013-06-12 09:54:31 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-09-12 23:04:20 -0700 |
commit | c0e7a53d0a4db2b8c45b506359e0bdab3ee4638c (patch) | |
tree | f2b2849f2476acdcf446e2718a10a9dfc1c97491 /spec | |
parent | 6c7c41cb7d28da4a5f8d953fefbb4286b643b5b1 (diff) | |
download | chef-c0e7a53d0a4db2b8c45b506359e0bdab3ee4638c.tar.gz |
Fix new tests on Ruby 1.8.7
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/knife/upload_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/knife/upload_spec.rb b/spec/integration/knife/upload_spec.rb index 50b20734a8..e0715f761a 100644 --- a/spec/integration/knife/upload_spec.rb +++ b/spec/integration/knife/upload_spec.rb @@ -237,7 +237,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 @@ -250,7 +250,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 |