Sha256: 866c64ac97a60374af3f5c602d24a275e48f88416696029760d00919158f62b6

Contents?: true

Size: 1.08 KB

Versions: 22

Compression:

Stored size: 1.08 KB

Contents

require_relative './spec_helper.rb'

describe 'Does it work?' do
  before do
    mocks1_templates =
      [['/lectures/intro/wonders/index.html', 'subsection', 0],
       ['/lectures/intro/wonders/page2.md.erb', 'page', 1],
       ['/lectures/intro/wonders/page3.md.erb', 'page', 2],
       ['/lectures/intro/wonder2/index.html', 'subsection', 1],
       ['/lectures/intro/wonder2/page22.md.erb', 'page', 1],
       ['/lectures/intro/wonder2/page32.md.erb', 'page', 2]]
    @citems1 = mocks1_templates.map { |i, t, o| CItem.new(nil, i, t, o) }
    @schd = Scheduler.new
    @schd.setup_from_args(
      start: 'jan-17-2017',
      weekdays: %i[tuesday wednesday thursday],
      start_times: %w[15:30 14:00 15:30],
      end_times: %w[16:50 16:00 16:50],
      number: 39,
      start_time: '15:30',
      end_time: '16:50',
      skips: %w[feb-9-2017 feb-21-2017 feb-22-2017 feb-23-2017 apr-11-2017
                apr-12-2017 apr-13-2017 apr-18-2017 apr-19-2017]
    )
    @sect = Lectures.new('intro', @citems1, @schd)
  end

  it 'correctly counts subsections' do
    expect(@sect).to be_truthy
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
coursegen-0.9.25 spec/play_spec.rb
coursegen-0.9.24 spec/play_spec.rb
coursegen-0.9.21 spec/play_spec.rb
coursegen-0.9.20 spec/play_spec.rb
coursegen-0.9.19 spec/play_spec.rb
coursegen-0.9.18 spec/play_spec.rb
coursegen-0.9.17 spec/play_spec.rb
coursegen-0.9.16 spec/play_spec.rb
coursegen-0.9.15 spec/play_spec.rb
coursegen-0.9.14 spec/play_spec.rb
coursegen-0.9.13 spec/play_spec.rb
coursegen-0.9.12 spec/play_spec.rb
coursegen-0.9.11 spec/play_spec.rb
coursegen-0.9.10 spec/play_spec.rb
coursegen-0.9.9 spec/play_spec.rb
coursegen-0.9.8 spec/play_spec.rb
coursegen-0.9.7 spec/play_spec.rb
coursegen-0.9.6 spec/play_spec.rb
coursegen-0.9.4 spec/play_spec.rb
coursegen-0.9.3 spec/play_spec.rb