Skip to content

Instantly share code, notes, and snippets.

@skrat
Created October 23, 2008 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skrat/19228 to your computer and use it in GitHub Desktop.
Save skrat/19228 to your computer and use it in GitHub Desktop.
it "should set new post" do
get('/login', :login => chucks_attributes[:login], :password => chucks_attributes[:password])
Post.should_receive(:new)
dispatch_to(Posts, :index).should respond_successfully
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment