Sha256: e549943c599f64d890ca80f5d8b8775a06caceb78bdccc5c90caa64109a43cdc
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' describe Daigaku::Loading::Units do let(:course_name) { course_dir_names.first } let(:chapter_path) { chapter_dirs(course_name).first } let(:chapter_name) { File.basename(chapter_path) } let(:subjects) { Daigaku::Loading::Units.load(chapter_path) } it 'has the prescribed number of units' do units_count = available_units(course_name, chapter_name).count expect(subjects.count).to eq units_count end it 'loads the available units' do subjects.each_with_index do |unit, index| expect(unit.title).to eq unit_titles[index] end end end
Version data entries
4 entries across 4 versions & 1 rubygems