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-7.6.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.6.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.6.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.5.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.5.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.5.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.4.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.4.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.4.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.3.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.3.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.2.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.1.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.12 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.11 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.10 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.9 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.8 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.7 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.0.6 spec/features/lessons_flow_spec.rb