spec/belajar/loading/chapters_spec.rb in belajar-0.1.1 vs spec/belajar/loading/chapters_spec.rb in belajar-1.0.0

- old
+ new

@@ -1,15 +1,14 @@ 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 + 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 + it 'loads the available chapters' do subjects.each_with_index do |chapter, index| expect(chapter.title).to eq chapter_titles[index] end end end