]> git.openstreetmap.org Git - rails.git/blob - test/system/confirmation_resend_test.rb
Merge remote-tracking branch 'upstream/pull/3316'
[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     fill_in "Email", :with => @user.email
9     fill_in "Email Confirmation", :with => @user.email
10     fill_in "Display Name", :with => @user.display_name
11     fill_in "Password", :with => "testtest"
12     fill_in "Confirm Password", :with => "testtest"
13     click_button "Sign Up"
14
15     check "I have read and agree to the above contributor terms"
16     check "I have read and agree to the Terms of Use"
17     click_button "Continue"
18   end
19
20   test "flash message should not contain raw html" do
21     visit user_confirm_resend_path(@user)
22
23     assert page.has_content?("sent a new confirmation")
24     assert_not page.has_content?("<p>")
25   end
26 end