Sha256: bf3c3e0fe920dbdfd6123ec536dc3de454be202de10a4b7fb3cbc818cf687323

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

describe 'Session overview' do
  include CASino::Engine.routes.url_helpers

  subject { page }

  context 'when logged in' do
    let(:login_attempt) do
      FactoryGirl.create :login_attempt, created_at: Time.zone.parse('2015-01-01 09:10'),
                                         user: CASino::User.first
    end

    before do
      sign_in
      login_attempt.touch
      visit login_attempts_path
    end

    it { should have_text('TestBrowser') }
    it { should have_text('133.133.133.133') }
    it { should have_text('2015-01-01 09:10') }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
casino-4.1.2 spec/features/login_attempts_spec.rb
casino-4.1.1 spec/features/login_attempts_spec.rb
casino-4.1.0 spec/features/login_attempts_spec.rb