Sha256: c57282f7239f5d1e33ba7cbc6a0fda19f288d50a3866f0ec2bb0938e75af8e1d

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

describe Belajar::Loading::Chapters do

  let(:subjects) { Belajar::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

1 entries across 1 versions & 1 rubygems

Version Path
belajar-0.1.1 spec/belajar/loading/chapters_spec.rb