Sha256: b9f846328a15f408ac580d0b61b9e083a21fbd9547beea75f613936833f8cef9
Contents?: true
Size: 903 Bytes
Versions: 24
Compression:
Stored size: 903 Bytes
Contents
require 'spec_helper' feature 'Topic Flow', organization_workspace: :test do let(:user) { create(:user) } let(:problem) { build(:problem) } let(:chapter) { create(:chapter, name: 'Functional Programming', lessons: [ create(:lesson, exercises: [ problem ]) ]) } let!(:topic_in_path) { chapter.topic } let(:topic_not_in_path) { create(:topic, name: 'Logic Programming') } before { reindex_current_organization! } before { set_current_user! user } scenario 'visit topic in path transparently' do visit "/topics/#{topic_in_path.transparent_id}" expect(page).to have_text('Functional Programming') expect(page).to have_text('Content') end scenario 'visit topic in path not transparently' do visit "/topics/#{topic_not_in_path.transparent_id}" expect(page).to_not have_text('Logic Programming') expect(page).to_not have_text('Content Programming') end end
Version data entries
24 entries across 24 versions & 1 rubygems