Sha256: 41de48ee9022c5d5d599ec799d9c4b4b1d7b049510ba01f3c74054257ec1d881

Contents?: true

Size: 448 Bytes

Versions: 22

Compression:

Stored size: 448 Bytes

Contents

require 'rails_helper'

RSpec.describe "Login with google oauth2", type: :feature do
  before do
    mock_omni_auth_google_oauth2
  end

  it 'signs in and signs out' do
    visit kuroko2_path
    click_on('Sign in with Google')
    expect(page.current_path).to eq(kuroko2_path)
    expect(page).to have_content('Favorite Job Definitions')

    click_on('Sign out')
    expect(page).to have_content('Please sign in with Google account.')
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.7.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.6.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.5.2 spec/features/sign_in_and_out_spec.rb
kuroko2-0.5.1 spec/features/sign_in_and_out_spec.rb
kuroko2-0.5.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.6 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.5 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.4 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.3 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.2 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.1 spec/features/sign_in_and_out_spec.rb
kuroko2-0.4.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.3.4 spec/features/sign_in_and_out_spec.rb
kuroko2-0.3.3 spec/features/sign_in_and_out_spec.rb
kuroko2-0.3.2 spec/features/sign_in_and_out_spec.rb
kuroko2-0.3.1 spec/features/sign_in_and_out_spec.rb
kuroko2-0.3.0 spec/features/sign_in_and_out_spec.rb
kuroko2-0.2.3 spec/features/sign_in_and_out_spec.rb
kuroko2-0.2.2 spec/features/sign_in_and_out_spec.rb