Sha256: 206945da6c2e050779c05e77e76066c5dd98de5957fdd2ab93843b88c82e0a86
Contents?: true
Size: 918 Bytes
Versions: 3
Compression:
Stored size: 918 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 page.should have_content("test@example.com") page.should 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 page.should have_content("Sign in") click_link "Sign in" page.should have_content('Authentication error') end end
Version data entries
3 entries across 3 versions & 1 rubygems