Sha256: c680c2c40c14b9675425e66f91d6a169a42e1f5f00b1bf8b0abebb9dc7fe6195
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe Daigaku::ReferenceSolution do it { is_expected.to respond_to :code } it { is_expected.to respond_to :path } let(:unit_path) do course_name = course_dir_names.first unit_dirs(course_name)[0].first end subject { Daigaku::ReferenceSolution.new(unit_path) } it "has the prescribed path" do path = File.join(unit_path, reference_solution_name) expect(subject.path).to eq path end it "has the prescribed code" do expect(subject.code).to eq solution_content end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daigaku-0.0.2 | spec/daigaku/reference_solution_spec.rb |
daigaku-0.0.1 | spec/daigaku/reference_solution_spec.rb |