Skip to content

Instantly share code, notes, and snippets.

@tammersaleh
Created August 25, 2008 13:54
Show Gist options
  • Save tammersaleh/7071 to your computer and use it in GitHub Desktop.
Save tammersaleh/7071 to your computer and use it in GitHub Desktop.
context "on get to /users" do
setup { get :index }
should "call the finder", :before => lambda {User.expects(:finder).returns(@users)} do
assert_equal @users, assigns(:users)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment