Created
February 14, 2009 05:12
-
-
Save miketierney/64257 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
test "should create user" do | |
assert_difference('User.count') do | |
post :create, :user => { | |
:name => "Bob Smith", | |
:password => "test", | |
:password_confirmation => "test" | |
} | |
end | |
assert_redirected_to :action => 'index' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment