Skip to content

Instantly share code, notes, and snippets.

@nathanhumbert
Created September 20, 2010 06:03
Show Gist options
  • Save nathanhumbert/587485 to your computer and use it in GitHub Desktop.
Save nathanhumbert/587485 to your computer and use it in GitHub Desktop.
context "create user" do
setup { post :create, :user => {:username => "foo"} }
should assign_to( :user ).with_kind_of(User)
should "save user to database" do
assert_equal false, assigns(:user).new_record?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment