osem-fcy/spec/models/organization_spec.rb
2017-06-12 19:43:44 +05:30

15 lines
320 B
Ruby

require 'spec_helper'
describe Organization do
let(:organization) { create(:organization) }
describe 'validation' do
it 'is not valid without a name' do
should validate_presence_of(:name)
end
end
describe 'associations' do
it { should have_many(:conferences).dependent(:destroy) }
end
end