blog.robotex.de

Rspec2: Testing the flash in your controller tests

it "should set a flash error message" do
  get :read, :id => @unpublished_post.id
  flash[:notice].should == "This post is not yet published."
end

Back