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.12.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.11.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.11.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.5 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.4 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.3 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.10.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.9.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.9.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.9.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.6 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.5 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.4 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.8.0 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.3 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.2 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.1 spec/features/lessons_flow_spec.rb
mumuki-laboratory-7.7.0 spec/features/lessons_flow_spec.rb