I have this test:
test "invalid signup" do
get signup_path
assert_no_difference 'User.count' do
post users_path, user: {
name: '', email: '', password: '',
password_confirmation:''
}
end
assert_template 'users/new'
end
but when I run it with rake test, I see this error:
Error: UsersSignupTest#test_invalid_signup: ArgumentError: unknown keyword: user test/integration/users_signup_test.rb:9:in block (2 levels) in ' test/integration/users_signup_test.rb:8:in block in '
How to pass data for POST method ?