Sha256: 0e749d56bf63868fdad28ce6fec8065b1ef274fd244a0ed103eae41744e04712
Contents?: true
Size: 390 Bytes
Versions: 7
Compression:
Stored size: 390 Bytes
Contents
require 'spec_helper_models' describe Gaku::Assignment do describe 'relations' do it { should belong_to :syllabus } it { should belong_to :grading_method } end describe 'validations' do it { should validate_presence_of :name } end describe '#to_s' do let(:assignment) { build(:assignment) } specify { assignment.to_s.should eq assignment.name } end end
Version data entries
7 entries across 7 versions & 1 rubygems