spec/belajar/task_spec.rb in belajar-0.1.1 vs spec/belajar/task_spec.rb in belajar-1.0.0

- old
+ new

@@ -1,23 +1,22 @@ require 'spec_helper' describe Belajar::Task do - it { is_expected.to respond_to :markdown } 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 { Belajar::Task.new(unit_path) } - it "has the prescribed path" do + it 'has the prescribed path' do path = File.join(unit_path, task_name) expect(subject.path).to eq path end - it "has the prescribed markdown" do + it 'has the prescribed markdown' do expect(subject.markdown).to eq task_file_content end -end \ No newline at end of file +end