user = create(:user)
changeset = create(:changeset, :closed)
- get_via_redirect "/login"
+ get "/login"
+ follow_redirect!
# We should now be at the login page
assert_response :success
assert_template "user/login"
# We can now login
- post "/login", "username" => user.email, "password" => "test"
+ post "/login", :params => { "username" => user.email, "password" => "test" }
assert_response :redirect
get "/changeset/#{changeset.id}"