Class: SMART_UDAP_HarmonizationTestKit::SMART_UDAP_IntentContextTest

Inherits:
SMART_UDAP_ContextTest show all
Defined in:
lib/smart_udap_harmonization_test_kit/smart_udap_intent_context_test.rb

Overview

rubocop:disable Naming/ClassAndModuleCamelCase

Instance Attribute Summary

Attributes inherited from SMART_UDAP_ContextTest

#token_response

Instance Method Summary collapse

Methods inherited from SMART_UDAP_ContextTest

#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_nameObject



12
13
14
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_intent_context_test.rb', line 12

def context_field_name
  'intent'
end

#context_scopesObject



16
17
18
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_intent_context_test.rb', line 16

def context_scopes
  [].freeze
end

#validate_context_fieldObject



20
21
22
23
# File 'lib/smart_udap_harmonization_test_kit/smart_udap_intent_context_test.rb', line 20

def validate_context_field
  assert context_field.is_a?(String),
         "Expected `#{context_field_name}` to be a String, but found: `#{context_field.class.name}`"
end