mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
parent
579da84c58
commit
59e1e18d32
8 changed files with 29 additions and 2 deletions
9
test/models/registrar_test.rb
Normal file
9
test/models/registrar_test.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue