travis-api/spec/lib/model/organization_spec.rb
Aakriti Gupta 65f1a29d86 Move travis-core files from /vendor to /lib.
- Re-factor
- Remove code for notifications
- Remove addons
- Remove travis-core gem.
- Ignore logs directory only
- Move core tests to spec/lib
2016-07-20 11:22:25 +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