Skip to content

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed May 24, 2018
1 parent a9ad914 commit 0da77d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/whois_records/json_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_json_all_fields_are_present
assert_equal(expected_response, response_json)
end

def test_hide_sensitive_data_of_private_entity_registrant_when_captcha_is_unsolved
def test_hide_sensitive_data_of_private_entity_when_captcha_is_unsolved
get '/v1/privatedomain.test', format: :json

response_json = JSON.parse(response.body, symbolize_names: true)
Expand All @@ -112,7 +112,7 @@ def test_hide_sensitive_data_of_private_entity_registrant_when_captcha_is_unsolv
assert_equal expected_tech_contacts, response_json[:tech_contacts]
end

def test_hide_sensitive_data_of_legal_entity_registrant_when_captcha_is_unsolved
def test_hide_sensitive_data_of_legal_entity_when_captcha_is_unsolved
get '/v1/company-domain.test', format: :json
response_json = JSON.parse(response.body, symbolize_names: true)

Expand All @@ -133,7 +133,7 @@ def test_hide_sensitive_data_of_legal_entity_registrant_when_captcha_is_unsolved
assert_equal expected_tech_contacts, response_json[:tech_contacts]
end

def test_show_sensitive_data_of_private_entity_registrant_when_ip_is_in_whitelist
def test_show_sensitive_data_of_private_entity_when_ip_is_in_whitelist
ENV['whitelist_ip'] = '127.0.0.1'

get '/v1/privatedomain.test', format: :json
Expand All @@ -156,7 +156,7 @@ def test_show_sensitive_data_of_private_entity_registrant_when_ip_is_in_whitelis
assert_equal expected_tech_contacts, response_json[:tech_contacts]
end

def test_show_sensitive_data_of_legal_entity_registrant_when_ip_is_in_whitelist
def test_show_sensitive_data_of_legal_entity_when_ip_is_in_whitelist
ENV['whitelist_ip'] = '127.0.0.1'

get '/v1/company-domain.test', format: :json
Expand All @@ -179,7 +179,7 @@ def test_show_sensitive_data_of_legal_entity_registrant_when_ip_is_in_whitelist
assert_equal expected_tech_contacts, response_json[:tech_contacts]
end

def test_hide_sensitive_data_of_private_entity_registrant_when_ip_is_not_in_whitelist
def test_hide_sensitive_data_of_private_entity_when_ip_is_not_in_whitelist
ENV['whitelist_ip'] = '127.0.0.2'

get '/v1/privatedomain.test', format: :json
Expand All @@ -204,7 +204,7 @@ def test_hide_sensitive_data_of_private_entity_registrant_when_ip_is_not_in_whit
assert_equal expected_tech_contacts, response_json[:tech_contacts]
end

def test_hide_sensitive_data_of_legal_entity_registrant_when_ip_is_not_in_whitelist
def test_hide_sensitive_data_of_legal_entity_when_ip_is_not_in_whitelist
ENV['whitelist_ip'] = '127.0.0.2'

get '/v1/company-domain.test', format: :json
Expand Down

0 comments on commit 0da77d7

Please sign in to comment.