mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
17 lines
351 B
Ruby
17 lines
351 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|