Repository URL to install this package:
|
Version:
4.0.0.pre.3 ▾
|
require 'rails_helper'
RSpec.describe Core::Assignment, type: :model do
it 'has a valid factory' do
expect(create(:core_assignment)).to be_valid
end
it 'has an associated instructor' do
assignment = create(:core_assignment)
expect(assignment.instructor).to be_an_instance_of(Core::Instructor)
end
it 'has an associated event' do
assignment = create(:core_assignment)
expect(assignment.event).to be_an_instance_of(Core::Event)
end
end