Sha256: 4b85612aded0ba4e759e637615ad24b70fa94b2b5882de12c39d698eea854fef

Contents?: true

Size: 632 Bytes

Versions: 13

Compression:

Stored size: 632 Bytes

Contents

require_relative "./spec_helper.rb"
describe "Does it work?" do
  before do
    @abc = 1
    mocks1_templates =
      [["/lectures/intro/wonders/", "subsection", 0],
      ["/lectures/intro/wonders/page2/", "page", 1],
      ["/lectures/intro/wonders/page3/", "page", 2],
      ["/lectures/intro/wonder2/", "subsection", 1],
      ["/lectures/intro/wonder2/page22/", "page", 1],
      ["/lectures/intro/wonder2/page32/", "page", 2]]
    @citems1 = mocks1_templates.map { |i, t, o| CItem.new(nil, i, t, o) }
    @sect = Lectures.new "intro", @citems1
  end

  it "correctly counts subsections" do
    expect (@abc).to eq 1
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
coursegen-0.8.3 spec/play_spec.rb
coursegen-0.8.2 spec/play_spec.rb
coursegen-0.8.1 spec/play_spec.rb
coursegen-0.7.7 spec/play_spec.rb
coursegen-0.7.6 spec/play_spec.rb
coursegen-0.7.5 spec/play_spec.rb
coursegen-0.7.4 spec/play_spec.rb
coursegen-0.7.3 spec/play_spec.rb
coursegen-0.7.2 spec/play_spec.rb
coursegen-0.7.1 spec/play_spec.rb
coursegen-0.7.0 spec/play_spec.rb
coursegen-0.5.0 spec/play_spec.rb
coursegen-0.4.2 spec/play_spec.rb