Sha256: 01bb39ef690b2d4ceb413586234102462207419fb4aacb827714ba82edb30659

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

describe Daigaku::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 { Daigaku::Task.new(unit_path) }

  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
    expect(subject.markdown).to eq task_file_content
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daigaku-1.0.0 spec/daigaku/task_spec.rb
daigaku-0.6.0 spec/daigaku/task_spec.rb
daigaku-0.5.0 spec/daigaku/task_spec.rb
daigaku-0.4.0 spec/daigaku/task_spec.rb