spec/amfetamine/base_spec.rb in amfetamine-0.1.5 vs spec/amfetamine/base_spec.rb in amfetamine-0.2.0

- old
+ new

@@ -194,10 +194,10 @@ end it "should receive data when doing a post" do Dummy.prevent_external_connections! do dummy = build(:dummy) - Dummy.rest_client.should_receive(:post).with("/dummies", :body => dummy.to_json). + Dummy.rest_client.should_receive(:post).with("/dummies", :body => dummy.to_hash_with_head). and_return(Amfetamine::FakeResponse.new('post', 201, lambda { dummy })) dummy.save end end