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

Version Path
mumuki-laboratory-9.9.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.8.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.8.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.8.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.7.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.7.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.7.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.6.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.5.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.5.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.4.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.4.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.3.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.3.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.2.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.1.3 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.1.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.1.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.1.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.0.6 spec/features/topic_flow_spec.rb