lib/generators/authentication/templates/test_unit/system/emails_test.rb.tt in authentication-zero-2.1.1 vs lib/generators/authentication/templates/test_unit/system/emails_test.rb.tt in authentication-zero-2.2.1
- old
+ new
@@ -13,9 +13,18 @@
click_on "Save changes"
assert_text "Your email has been changed"
end
+ test "sending a verification email" do
+ @<%= singular_table_name %>.update! verified: false
+
+ click_on "Change email"
+ click_on "Re-send verification email"
+
+ assert_text "We sent a verification email to your email address"
+ end
+
def sign_in_as(<%= singular_table_name %>)
visit sign_in_url
fill_in :email, with: <%= singular_table_name %>.email
fill_in :password, with: "secret123"
click_on "Sign in"