Sha256: c3b76d20ca93f29bb4ac10ab36757118ad129356f8b6e3e9a013e6fe7a316d83

Contents?: true

Size: 903 Bytes

Versions: 41

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('Lessons')
  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

41 entries across 41 versions & 1 rubygems

Version Path
mumuki-laboratory-8.2.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.2.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.1.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.1.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.1.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.1.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.12.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-8.0.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.12.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.12.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.11.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.11.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.5 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.4 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.10.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.9.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-7.9.1 spec/features/topic_flow_spec.rb