]> git.openstreetmap.org Git - rails.git/blob - test/system/confirmation_resend_test.rb
Merge remote-tracking branch 'upstream/pull/4466'
[rails.git] / test / system / confirmation_resend_test.rb
1 require "application_system_test_case"
2
3 class ConfirmationResendSystemTest < ApplicationSystemTestCase
4   def setup
5     @user = build(:user)
6     visit user_new_path
7
8     within ".new_user" do
9       fill_in "Email", :with => @user.email
10       fill_in "Email Confirmation", :with => @user.email
11       fill_in "Display Name", :with => @user.display_name
12       fill_in "Password", :with => "testtest"
13       fill_in "Confirm Password", :with => "testtest"
14       click_on "Sign Up"
15     end
16
17     check "I have read and agree to the above contributor terms"
18     check "I have read and agree to the Terms of Use"
19     click_on "Continue"
20   end
21
22   test "flash message should not contain raw html" do
23     visit user_confirm_resend_path(@user)
24
25     assert_content "sent a new confirmation"
26     assert_no_content "<p>"
27   end
28 end