Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

And fail

  • Loading branch information...
commit aa974e961059651645127c33ea8f5cdd1d8bcb42 1 parent 3fca02e
@ludo authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 spec/controllers/messages_controller_spec.rb
View
10 spec/controllers/messages_controller_spec.rb
@@ -52,6 +52,11 @@
end
describe "GET /messages" do
+ before(:each) do
+ @messages = [mock_model(Message), mock_model(Message)]
+ Message.stub!(:all).and_return(@messages)
+ end
+
it "should render 'index' template" do
get :index
response.should render_template("index")
@@ -62,6 +67,9 @@
get :index
end
- it "should expose the messages for the view"
+ it "should expose the messages for the view" do
+ get :index
+ assigns[:messages].should == @messages
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.