mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
9 lines
284 B
Ruby
9 lines
284 B
Ruby
require 'test_helper'
|
|
|
|
class RegistrarTest < ActiveSupport::TestCase
|
|
def test_rejects_absent_accounting_customer_code
|
|
registrar = Registrar.new(accounting_customer_code: nil)
|
|
registrar.validate
|
|
assert registrar.errors.added?(:accounting_customer_code, :blank)
|
|
end
|
|
end
|