Class: USCoreTestKit::USCoreV610::SmartGranularScopesGroup

Inherits:
Inferno::TestGroup
  • Object
show all
Includes:
SmartScopesConstants
Defined in:
lib/us_core_test_kit/custom_groups/v6.1.0/smart_granular_scopes_group.rb

Constant Summary

Constants included from SmartScopesConstants

SmartScopesConstants::DEFAULT_SCOPES, SmartScopesConstants::SMART_GRANULAR_SCOPES_GROUP1, SmartScopesConstants::SMART_GRANULAR_SCOPES_GROUP2, SmartScopesConstants::SMART_GRANULAR_SCOPE_RESOURCES

Class Method Summary collapse

Class Method Details

.default_group_scopes(version) ⇒ Object



28
29
30
# File 'lib/us_core_test_kit/custom_groups/v6.1.0/smart_granular_scopes_group.rb', line 28

def self.default_group_scopes(version)
  [DEFAULT_SCOPES, *SMART_GRANULAR_SCOPES_GROUP1[version]].join(' ')
end

.scopes_string(scopes) ⇒ Object



32
33
34
35
36
37
# File 'lib/us_core_test_kit/custom_groups/v6.1.0/smart_granular_scopes_group.rb', line 32

def self.scopes_string(scopes)
  scopes
    .map { |scope| scope.delete_prefix 'patient/' }
    .map { |scope| "* `#{scope}`" }
    .join("\n")
end