2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2017-05-31 18:42:52 +05:30
|
|
|
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
|