Sha256: c7e9fab894b18d052166bdbaa2e7c3fedcc6a4eededee1071fff547390a58014
Contents?: true
Size: 424 Bytes
Versions: 7
Compression:
Stored size: 424 Bytes
Contents
require 'spec_helper_models' describe Gaku::AssignmentScore do describe 'relations' do it { should belong_to :student } end describe 'validations' do it { should validate_presence_of :score } it { should validate_presence_of :student } end describe '#to_s' do let(:assignment_score) { build(:assignment_score) } specify { assignment_score.to_s.should eq assignment_score.score } end end
Version data entries
7 entries across 7 versions & 1 rubygems