Skip to content

Instantly share code, notes, and snippets.

@miketierney
Created February 14, 2009 05:12
Show Gist options
  • Save miketierney/64257 to your computer and use it in GitHub Desktop.
Save miketierney/64257 to your computer and use it in GitHub Desktop.
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