lib/generators/authentication/templates/test_unit/system/emails_test.rb.tt in authentication-zero-2.2.10 vs lib/generators/authentication/templates/test_unit/system/emails_test.rb.tt in authentication-zero-2.3.0
- old
+ new
@@ -6,11 +6,10 @@
end
test "updating the email" do
click_on "Change email address"
- fill_in "Current password", with: "Secret123456"
fill_in "New email", with: "new_email@hey.com"
click_on "Save changes"
assert_text "Your email has been changed"
end
@@ -28,8 +27,9 @@
visit sign_in_url
fill_in :email, with: <%= singular_table_name %>.email
fill_in :password, with: "Secret123456"
click_on "Sign in"
+ assert_current_path root_path
return <%= singular_table_name %>
end
end