Class: SMART_UDAP_HarmonizationTestKit::SMART_UDAP_SmartStyleUrlContextTest
Overview
rubocop:disable Naming/ClassAndModuleCamelCase
Instance Attribute Summary
#token_response
Instance Method Summary
collapse
#context_field, #context_field_present?, #missing_received_context_scopes, #missing_received_context_scopes?, #missing_received_scopes_string, #missing_requested_context_scopes, #missing_requested_context_scopes?, #missing_requested_scopes_string, #received_scopes, #received_scopes_list, #requested_scopes, #requested_scopes_list
Instance Method Details
#context_field_name ⇒ Object
13
14
15
|
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_smart_style_url_context_test.rb', line 13
def context_field_name
'smart_style_url'
end
|
#context_scopes ⇒ Object
17
18
19
|
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_smart_style_url_context_test.rb', line 17
def context_scopes
[].freeze
end
|
#validate_context_field ⇒ Object
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_smart_style_url_context_test.rb', line 21
def validate_context_field
assert context_field.is_a?(String),
"Expected `#{context_field_name}` to be a String, but found: `#{context_field.class.name}`"
assert_valid_http_uri context_field
get(token_response['smart_style_url'])
assert_response_status(200)
assert_valid_json(response[:body])
end
|