Sha256: d46b0f6d1efeb13609e3aa77ca2f86c2e1a16cbbabdcb6b619ee0fcb065b1fe5

Contents?: true

Size: 623 Bytes

Versions: 13

Compression:

Stored size: 623 Bytes

Contents

require 'spec_helper'

feature 'Lessons Flow' do
  let(:lesson_not_in_path) { create(:lesson) }

  before { reindex_current_organization! }

  let(:user) { User.find_by(name: 'testuser') }

  context 'inexistent lesson' do
    scenario 'visit lesson by id, not in path' do
      visit "/lessons/#{lesson_not_in_path.id}"
      expect(page).to have_text('You may have mistyped the address or the page may have moved')
    end

    scenario 'visit lesson by id, unknown lesson' do
      visit '/lessons/900000'
      expect(page).to have_text('You may have mistyped the address or the page may have moved')
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mumuki-laboratory-5.0.12 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.11 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.10 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.9 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.8 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.7 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.6 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.5 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.4 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.3 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-5.0.0 spec/features/lessons_flow_spec.rb