mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
15 lines
352 B
Ruby
15 lines
352 B
Ruby
|
|
require 'rails_helper'
|
||
|
|
|
||
|
|
RSpec.describe TenantDefaultOAuth, type: :model do
|
||
|
|
let(:tenant_default_o_auth) { FactoryBot.build(:tenant_default_o_auth) }
|
||
|
|
|
||
|
|
it 'is valid' do
|
||
|
|
expect(tenant_default_o_auth).to be_valid
|
||
|
|
end
|
||
|
|
|
||
|
|
it 'must have a o_auth_id' do
|
||
|
|
tenant_default_o_auth.o_auth = nil
|
||
|
|
expect(tenant_default_o_auth).to be_invalid
|
||
|
|
end
|
||
|
|
end
|