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.23.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.22.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.21.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.20.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.20.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.19.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.18.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.18.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.17.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.16.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.15.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.14.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.14.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.13.2 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.13.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.13.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.12.1 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.12.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.11.0 spec/features/topic_flow_spec.rb
mumuki-laboratory-9.10.0 spec/features/topic_flow_spec.rb