mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
13 lines
296 B
Ruby
13 lines
296 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Account do
|
|
describe 'registrar validation', db: false do
|
|
subject(:account) { described_class.new }
|
|
|
|
it 'rejects absent' do
|
|
account.registrar = nil
|
|
account.validate
|
|
expect(account.errors).to have_key(:registrar)
|
|
end
|
|
end
|
|
end
|