Sha256: 4835efd5d204aca67630bc613bdb73fa13d5f70786d0aa593e8b5195abbd4c08

Contents?: true

Size: 984 Bytes

Versions: 13

Compression:

Stored size: 984 Bytes

Contents

require 'spec_helper'

feature 'Standard Flow' do
  let(:haskell) { create(:haskell) }

  let!(:chapter) {
    create(:chapter, name: 'Functional Programming', lessons: [
        create(:lesson, name: 'Values and Functions', language: haskell, description: 'Values are everywhere...', exercises: [
            create(:exercise, name: 'The Basic Values', description: "Let's say we want to declare a variable...")
        ])
    ]) }

  before { reindex_current_organization! }

  before do
    visit '/'
  end

  scenario 'do an exercise for first time, starting from home' do
    expect(page).to have_text('Functional Programming')

    click_on 'Start Practicing!'

    expect(page).to have_text('Values and Functions')
    expect(page).to have_text('Values are everywhere...')
    expect(page).to have_text('Content')
    expect(page).to have_text('The Basic Values')
    expect(page).to have_text('Start this lesson!')
    expect(page).to_not have_text("Let's say we")
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mumuki-laboratory-5.0.12 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.11 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.10 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.9 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.8 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.7 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.6 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.5 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.4 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.3 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.2 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-5.0.0 spec/features/standard_flow_spec.rb