]> git.openstreetmap.org Git - rails.git/blob - test/system/confirmation_resend_test.rb
Merge login and terms screens, assume TOU and contributor terms are accepted on ...
[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   end
17
18   test "flash message should not contain raw html" do
19     visit user_confirm_resend_path(@user)
20
21     assert_content "sent a new confirmation"
22     assert_no_content "<p>"
23   end
24 end