Sha256: 0c6f51f4bf214804e21bff49228d20c8e6df6254d8a3a99d27d80c072d0072b6

Contents?: true

Size: 783 Bytes

Versions: 10

Compression:

Stored size: 783 Bytes

Contents

require 'spec_helper'

# FIXME Relies on spec/dummy/config/initializers/omniauth-identity.rb or you get
# stack/routing/middleware issues.
#
feature "Identity Login" do
  background do
    FactoryGirl.create(:identity_user, :email => 'user@example.com', :password => 'caplin')
  end

  scenario "Signing in with correct credentials" do
    visit '/login'
    fill_in 'Email', :with => 'user@example.com'
    fill_in 'Password', :with => 'caplin'
    click_button 'Sign in'
    page.should have_content 'Signed in!'
  end

  scenario "Signing in as invalid user" do
    visit '/login'
    fill_in 'Email', :with => 'user@example.com'
    fill_in 'Password', :with => 'bogus'
    click_button 'Sign in'
    page.should have_content 'Authentication failed, please try again.'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
socialite-0.2.1 spec/features/identity_login_spec.rb
socialite-0.2.0 spec/features/identity_login_spec.rb
socialite-0.1.2 spec/features/identity_login_spec.rb
socialite-0.1.1 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.7 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.6 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.5 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.4 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.3 spec/features/identity_login_spec.rb
socialite-0.1.0.pre.2 spec/features/identity_login_spec.rb