Created
September 20, 2010 06:03
-
-
Save nathanhumbert/587485 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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