mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
closes #1658 added test for openid fixed robocup offences written tests for email presence validation minor changes shifted omniauth callback tests to rspec controllers fixed linting bug minor changes minor changes
15 lines
354 B
Ruby
15 lines
354 B
Ruby
require 'spec_helper'
|
|
|
|
describe Openid do
|
|
subject { create(:openid) }
|
|
|
|
describe 'validation' do
|
|
it { is_expected.to validate_presence_of(:provider) }
|
|
it { is_expected.to validate_presence_of(:uid) }
|
|
it { is_expected.to validate_presence_of(:email) }
|
|
end
|
|
|
|
describe 'association' do
|
|
it { is_expected.to belong_to(:user) }
|
|
end
|
|
end
|