Sha256: fc59f85bac2661a486846f3a8e525c8ba21300ef4ade92b62bcadddb4eaa76e4

Contents?: true

Size: 607 Bytes

Versions: 13

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

describe 'CourseChanged' do
  let(:course_json) do
    {slug: 'test/bar',
     shifts: %w(morning),
     code: 'k2003',
     days: %w(monday wednesday),
     period: '2016',
     description: 'test course'}
  end

  let!(:course) { Course.import_from_json! course_json }

  it { expect(course.organization.courses).to include course }
  it { expect(course.organization.name).to eq 'test' }

  it { expect(course.slug).to eq 'test/bar' }
  it { expect(course.code).to eq 'k2003' }
  it { expect(course.days).to eq %w(monday wednesday) }
  it { expect(course.period).to eq '2016' }
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mumuki-laboratory-5.0.12 spec/models/course_spec.rb
mumuki-laboratory-5.0.11 spec/models/course_spec.rb
mumuki-laboratory-5.0.10 spec/models/course_spec.rb
mumuki-laboratory-5.0.9 spec/models/course_spec.rb
mumuki-laboratory-5.0.8 spec/models/course_spec.rb
mumuki-laboratory-5.0.7 spec/models/course_spec.rb
mumuki-laboratory-5.0.6 spec/models/course_spec.rb
mumuki-laboratory-5.0.5 spec/models/course_spec.rb
mumuki-laboratory-5.0.4 spec/models/course_spec.rb
mumuki-laboratory-5.0.3 spec/models/course_spec.rb
mumuki-laboratory-5.0.2 spec/models/course_spec.rb
mumuki-laboratory-5.0.1 spec/models/course_spec.rb
mumuki-laboratory-5.0.0 spec/models/course_spec.rb