Commit f712e8de by Đường Sỹ Hoàng

Fixed identation

parent 5b9aabf2
...@@ -5,20 +5,17 @@ class UsersSignupTest < ActionDispatch::IntegrationTest ...@@ -5,20 +5,17 @@ class UsersSignupTest < ActionDispatch::IntegrationTest
test "invalid signup information" do test "invalid signup information" do
get signup_path get signup_path
assert_no_difference "User.count" do assert_no_difference "User.count" do
post users_path, params: { user: { name: "", post users_path, params: { user: { name: "", email: "user@invalid", password: "foo", password_confirmation: "bar" } }
email: "user@invalid",
password: "foo",
password_confirmation: "bar" } }
end end
assert_template "users/new" assert_template "users/new"
assert_select "div#error_explanation" assert_select "div#error_explanation"
assert_select "div.field_with_errors" assert_select "div.field_with_errors"
end end
test "valid signup information" do test "valid signup information" do
get signup_path get signup_path
assert_difference "User.count", 1 do assert_difference "User.count", 1 do
post users_path, params: { user: { name: "Example User",email: "user@example.com",password: "password",password_confirmation: "password" } } post users_path, params: { user: { name: "Example User", email: "user@example.com", password: "password", password_confirmation: "password" } }
end end
follow_redirect! follow_redirect!
assert_template "users/show" assert_template "users/show"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment