osem-fcy/spec/models/organization_spec.rb

18 lines
351 B
Ruby
Raw Normal View History

# 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