mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
added endpoint for get cancelled invoices
This commit is contained in:
parent
5a19149129
commit
62ce5ff561
4 changed files with 70 additions and 4 deletions
|
@ -2,16 +2,14 @@ require 'test_helper'
|
|||
|
||||
class DomainsTest < ApplicationIntegrationTest
|
||||
def setup
|
||||
super
|
||||
|
||||
@domain = domains(:shop)
|
||||
end
|
||||
|
||||
def test_get_domain_info
|
||||
get "/api/v1/accreditation_center/domains/?name=#{@domain.name}"
|
||||
get "/api/v1/accreditation_center/domains/?name=shop.test"
|
||||
json = JSON.parse(response.body, symbolize_names: true)
|
||||
|
||||
assert_equal json[:domain][:name], @domain.name
|
||||
assert_equal json[:domain][:name], "shop.test"
|
||||
end
|
||||
|
||||
def test_return_code_error_if_valid_domain_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue