Sha256: c0245b665d898fa4e1317928c5bbf7037210ae009ac2a2c57c5bbe013e2365ba
Contents?: true
Size: 862 Bytes
Versions: 51
Compression:
Stored size: 862 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') 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
51 entries across 51 versions & 1 rubygems