Sha256: c7d9d1f9b4bc85cdc253ebf2608e2d6c983b04ade92ced6be34c4fb06babb7e2

Contents?: true

Size: 654 Bytes

Versions: 159

Compression:

Stored size: 654 Bytes

Contents

require 'spec_helper'

feature 'Lessons Flow', organization_workspace: :test 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

159 entries across 159 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.22.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.21.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.20.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.20.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.19.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.18.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.18.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.17.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.16.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.15.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.14.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.14.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.13.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.13.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.13.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.12.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.12.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.11.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-9.10.0 spec/features/lessons_flow_spec.rb