Sha256: 1c875c04dce6f52c2a39139a9eacaf499873ceb7800236c14bdc51510335412d

Contents?: true

Size: 430 Bytes

Versions: 6

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

describe Daigaku::Loading::Chapters do

  let(:subjects) { Daigaku::Loading::Chapters.load(course_dirs.first) }

  it "has the prescribed number of chapters" do
    expect(subjects.count).to eq available_chapters(course_dirs.first).count
  end

  it "loads the available chapters" do
    subjects.each_with_index do |chapter, index|
      expect(chapter.title).to eq chapter_titles[index]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
daigaku-0.3.0 spec/daigaku/loading/chapters_spec.rb
daigaku-0.2.0 spec/daigaku/loading/chapters_spec.rb
daigaku-0.1.1 spec/daigaku/loading/chapters_spec.rb
daigaku-0.1.0 spec/daigaku/loading/chapters_spec.rb
daigaku-0.0.2 spec/daigaku/loading/chapters_spec.rb
daigaku-0.0.1 spec/daigaku/loading/chapters_spec.rb