Sha256: b0e0714cfa300dcfa8248152461936f5ef7280ccc5d44e1d0cf21cfebbf987ac

Contents?: true

Size: 515 Bytes

Versions: 15

Compression:

Stored size: 515 Bytes

Contents

require 'test_helper'

class SignUpTest < ActiveSupport::IntegrationCase

  test 'sign in of a just-signed-up user' do
    visit new_user_path
    fill_in 'user_name',     :with => 'Robert'
    fill_in 'user_username', :with => 'bob'
    fill_in 'user_password', :with => 'secret'
    click_button 'Sign up'

    assert_equal root_path, current_path

    within '.flash.notice' do
      assert page.has_content?('You have signed up!')
    end

    assert page.has_content?('You are signed in as Robert')
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
quo_vadis-1.4.2 test/integration/sign_up_test.rb
quo_vadis-1.4.1 test/integration/sign_up_test.rb
quo_vadis-1.4.0 test/integration/sign_up_test.rb
quo_vadis-1.3.2 test/integration/sign_up_test.rb
quo_vadis-1.3.1 test/integration/sign_up_test.rb
quo_vadis-1.3.0 test/integration/sign_up_test.rb
quo_vadis-1.2.3 test/integration/sign_up_test.rb
quo_vadis-1.2.2 test/integration/sign_up_test.rb
quo_vadis-1.2.1 test/integration/sign_up_test.rb
quo_vadis-1.2.0 test/integration/sign_up_test.rb
quo_vadis-1.1.2 test/integration/sign_up_test.rb
quo_vadis-1.1.1 test/integration/sign_up_test.rb
quo_vadis-1.1.0 test/integration/sign_up_test.rb
quo_vadis-1.0.7 test/integration/sign_up_test.rb
quo_vadis-1.0.6 test/integration/sign_up_test.rb