Permalink
Browse files

Failing controller spec for post /messages

  • Loading branch information...
1 parent b6dd655 commit 23b19cd851e42e298120de56bafcb7660b7d87e8 @ludo committed Jul 25, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/controllers/messages_controller_spec.rb
@@ -29,7 +29,11 @@
end
describe "POST /messages" do
- it "should initialize a new message from params"
+ it "should initialize a new message from params" do
+ Message.should_receive(:new).with(:body => "Something interesting")
+ post :create, :body => "Something interesting"
+ end
+
it "should save the message"
it "should redirect to shared messages list"
end

0 comments on commit 23b19cd

Please sign in to comment.