Sha256: d565cba300d0d3ae2e827ebc32a8297dfae846edf8d41f64d196fffbf3c0aa50
Contents?: true
Size: 881 Bytes
Versions: 9
Compression:
Stored size: 881 Bytes
Contents
# Feature: Sign in # As a user # I want to sign in # So I can visit protected areas of the site feature 'Sign in', :omniauth do # Scenario: User can sign in with valid account # Given I have a valid account # And I am not signed in # When I sign in # Then I see a success message scenario "user can sign in with valid account" do signin expect(page).to have_content("Sign out") end # Scenario: User cannot sign in with invalid account # Given I have no account # And I am not signed in # When I sign in # Then I see an authentication error message scenario 'user cannot sign in with invalid account' do OmniAuth.config.mock_auth[:twitter] = :invalid_credentials visit root_path expect(page).to have_content("Sign in") click_link "Sign in" expect(page).to have_content('Authentication error') end end
Version data entries
9 entries across 9 versions & 1 rubygems