diff options
author | Tim Hinderliter <tim@opscode.com> | 2010-11-24 16:40:02 -0800 |
---|---|---|
committer | Tim Hinderliter <tim@opscode.com> | 2010-11-24 16:40:02 -0800 |
commit | 572e68ce90d59356a54f2b8ade7f715c20aadad4 (patch) | |
tree | 87350334550ca6f1c8d8ce4490c9dc646cce2956 | |
parent | 4422203ae7a2c711c31c95c529ee66bdffa363e1 (diff) | |
download | chef-572e68ce90d59356a54f2b8ade7f715c20aadad4.tar.gz |
for CHEF-1292/PL-538, modify search index_queue_spec to call the right
JSON serialization functions in Chef::JSON
-rw-r--r-- | chef/spec/unit/index_queue_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/index_queue_spec.rb b/chef/spec/unit/index_queue_spec.rb index 02cdd514e3..61382fb8ec 100644 --- a/chef/spec/unit/index_queue_spec.rb +++ b/chef/spec/unit/index_queue_spec.rb @@ -113,7 +113,7 @@ describe Chef::IndexQueue::Indexable do @queue = FauxQueue.new @publisher.should_receive(:queue_for_object).with("0000000-1111-2222-3333-444444444444").and_yield(@queue) @indexable_obj.add_to_index(:database => "couchdb@localhost,etc.", :id=>"0000000-1111-2222-3333-444444444444") - published_message = JSON.parse(@queue.published_message) + published_message = Chef::JSON.from_json(@queue.published_message) published_message.should == {"action" => "add", "payload" => {"item" => @item_as_hash, "type" => "indexable_test_harness", "database" => "couchdb@localhost,etc.", @@ -126,7 +126,7 @@ describe Chef::IndexQueue::Indexable do @publisher.should_receive(:queue_for_object).with("0000000-1111-2222-3333-444444444444").and_yield(@queue) @indexable_obj.delete_from_index(:database => "couchdb2@localhost", :id=>"0000000-1111-2222-3333-444444444444") - published_message = JSON.parse(@queue.published_message) + published_message = Chef::JSON.from_json(@queue.published_message) published_message.should == {"action" => "delete", "payload" => { "item" => @item_as_hash, "type" => "indexable_test_harness", "database" => "couchdb2@localhost", |