mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 14:14:49 +02:00
Add count check to registry lock test
This commit is contained in:
parent
97617764fb
commit
ec5e4fe356
1 changed files with 5 additions and 3 deletions
|
@ -35,9 +35,11 @@ class RegistrantApiDomainRegistryLockTest < ApplicationIntegrationTest
|
|||
assert(@domain.locked_by_registrant?)
|
||||
end
|
||||
|
||||
def test_locking_a_domain_leaves_paper_trail
|
||||
post '/api/v1/registrant/domains/2df2c1a1-8f6a-490a-81be-8bdf29866880/registry_lock',
|
||||
{}, @auth_headers
|
||||
def test_locking_a_domain_creates_a_version_record
|
||||
assert_difference '@domain.versions.count', 1 do
|
||||
post '/api/v1/registrant/domains/2df2c1a1-8f6a-490a-81be-8bdf29866880/registry_lock',
|
||||
{}, @auth_headers
|
||||
end
|
||||
|
||||
@domain.reload
|
||||
assert_equal(@domain.updator, @user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue