travis-api/spec_core/model/organization_spec.rb
2016-06-19 14:35:54 +02:00

19 lines
523 B
Ruby

describe User do
let(:org) { Factory.create(:org, :login => 'travis-organization') }
describe 'educational_org' do
after do
Travis::Features.deactivate_owner(:educational_org, org)
end
it 'returns true if organization is flagged as educational_org' do
Travis::Features.activate_owner(:educational_org, org)
org.education?.should be true
end
it 'returns false if the organization has not been flagged as educational_org' do
org.education?.should be false
end
end
end