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