Sha256: 41094db643ec05b9cb58e16b9c146da336eb3251b6e83eba69bd52f2e79f7910
Contents?: true
Size: 958 Bytes
Versions: 4
Compression:
Stored size: 958 Bytes
Contents
require 'test_helper' class NavigationTest < ActiveSupport::IntegrationCase test 'verification page shows form with fields for verification' do sign_in_user visit new_user_verification_path assert_current_path '/users/verification/new' assert_text 'Full name' assert_text 'Address' assert_button 'Verify' end test 'verifies the user filling all fields for verification' do sign_in_user visit new_user_verification_path fill_in 'user_full_name', with: 'John Doe' fill_in 'user_address', with: '555, 5th Street' click_button 'Verify' assert_current_path root_path assert_text 'Your account has been verified!' end test 'shows errors messages when invalid user' do sign_in_user visit new_user_verification_path click_button 'Verify' assert_current_path user_verification_path assert_text 'Full name can\'t be blank' assert_text 'Address can\'t be blank' end end
Version data entries
4 entries across 4 versions & 1 rubygems