Sha256: 43cc07d2e9e7d520e9fba2821c04cc11f7313d6842da26a926667e67ae5e9129

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

require 'spec_helper'

feature "User Sessions" do

  background(:all) do
    @user = create(:user)
    @user.activate!
  end

  after(:all) do
    @user.destroy
  end

  scenario "Sign in with valid credentials" do
    sign_in(@user.email, 'password')

    find('.alert').should have_content("Successfully signed in")
  end

  scenario "Sign in with an invalid email" do
    sign_in('this is not valid', 'password')

    find('.alert').should have_content("Sign in failed")
  end

  scenario "Sign in with an invalid password" do
    sign_in(@user.email, 'this is not valid')

    find('.alert').should have_content("Sign in failed")
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
raygun-0.0.13 app_prototype/spec/features/user_sessions_spec.rb