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

Version Path
mumuki-laboratory-7.1.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.12 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.11 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.10 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.9 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.8 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.7 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.6 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.5 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.4 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.7 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.6 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.5 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.0.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.4 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-6.7.2 spec/features/topic_flow_spec.rb