spec/message_spec.rb in socialcastr-0.1.0 vs spec/message_spec.rb in socialcastr-0.1.1

- old
+ new

@@ -163,10 +163,10 @@ it "should post to messages/425/comments.xml" do @api = mock(:api) response = "<comment></comment>" Socialcastr::Message.stub!(:api).and_return(@api) - @api.should_receive(:post).with("/messages/425/comments", {:text => "hallo world"}).and_return(response) + @api.should_receive(:post).with("/messages/425/comments", {"comment[text]" => "hallo world"}).and_return(response) @message.comment! :text => "hallo world" end end end