transferred Code Ocean from original repository to GitHub

This commit is contained in:
Hauke Klement
2015-01-22 09:51:49 +01:00
commit 4cbf9970b1
683 changed files with 11979 additions and 0 deletions

View File

@ -0,0 +1,25 @@
require 'rails_helper'
describe ExternalUser do
let(:user) { ExternalUser.create }
it 'validates the presence of a consumer' do
expect(user.errors[:consumer_id]).to be_present
end
it 'validates the presence of an external ID' do
expect(user.errors[:external_id]).to be_present
end
describe '#admin?' do
it 'is false' do
expect(FactoryGirl.build(:external_user).admin?).to be false
end
end
describe '#teacher?' do
it 'is false' do
expect(FactoryGirl.build(:external_user).teacher?).to be false
end
end
end