Sha256: 96aca4bf27c1eee64c8b90b4b4d0c30b86e637724c4348ec37fb5eaf394b1d1a

Contents?: true

Size: 457 Bytes

Versions: 11

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

feature 'Welcome Page' do
  given(:user) { create :user }

  scenario 'only authenticated users can access application' do
    visit lcms_engine.root_path
    expect(page).to have_text(I18n.t('devise.failure.unauthenticated'))
  end

  scenario 'visit welcome page and see the shout out panel' do
    login_as user
    visit lcms_engine.root_path
    expect(page).to have_css('.text-center')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/features/welcome_spec.rb
lcms-engine-0.5.4 spec/features/welcome_spec.rb
lcms-engine-0.5.3 spec/features/welcome_spec.rb
lcms-engine-0.5.2 spec/features/welcome_spec.rb
lcms-engine-0.5.1 spec/features/welcome_spec.rb
lcms-engine-0.5.0 spec/features/welcome_spec.rb
lcms-engine-0.4.2 spec/features/welcome_spec.rb
lcms-engine-0.4.1 spec/features/welcome_spec.rb
lcms-engine-0.4.0 spec/features/welcome_spec.rb
lcms-engine-0.3.1 spec/features/welcome_spec.rb
lcms-engine-0.3.0 spec/features/welcome_spec.rb