Sha256: 1d56b8b987b7ae87844fdf7638c2f5243afc469acd90e77db94ca6ac1b1a9586
Contents?: true
Size: 435 Bytes
Versions: 7
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper_models' describe Gaku::ScholarshipStatus do describe 'associations' do it { should have_many :students } end describe 'validations' do it { should validate_presence_of :name } it { should validate_uniqueness_of :name } end describe '#to_s' do let(:scholarship_status) { build(:scholarship_status) } specify { scholarship_status.to_s.should eq scholarship_status.name } end end
Version data entries
7 entries across 7 versions & 1 rubygems