Class: ONCCertificationG10TestKit::PatientScopeTest
- Inherits:
-
Inferno::Test
- Object
- Inferno::Test
- ONCCertificationG10TestKit::PatientScopeTest
- Defined in:
- lib/onc_certification_g10_test_kit/patient_scope_test.rb
Instance Method Summary collapse
- #scope_regex_string(scope) ⇒ Object
- #scope_version ⇒ Object
- #unmatched_scopes_string(unmatched_scopes) ⇒ Object
Instance Method Details
#scope_regex_string(scope) ⇒ Object
45 46 47 |
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 45 def scope_regex_string(scope) "\\A#{Regexp.quote(scope)}\\z" end |
#scope_version ⇒ Object
19 20 21 |
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 19 def scope_version config.[:scope_version] end |
#unmatched_scopes_string(unmatched_scopes) ⇒ Object
49 50 51 52 53 |
# File 'lib/onc_certification_g10_test_kit/patient_scope_test.rb', line 49 def unmatched_scopes_string(unmatched_scopes) unmatched_scopes .map { |scope| "`#{scope.source}`" } .join(', ') end |