Class: USCoreTestKit::SearchTestProperties
- Inherits:
-
Object
- Object
- USCoreTestKit::SearchTestProperties
- Defined in:
- lib/us_core_test_kit/search_test_properties.rb
Constant Summary collapse
- ATTRIBUTES =
[ :resource_type, :search_param_names, :first_search, :fixed_value_search, :saves_delayed_references, :possible_status_search, :test_medication_inclusion, :token_search_params, :test_reference_variants, :params_with_comparators, :multiple_or_search_params, :test_post_search ].freeze
Instance Method Summary collapse
- #first_search? ⇒ Boolean
- #fixed_value_search? ⇒ Boolean
-
#initialize(**properties) ⇒ SearchTestProperties
constructor
A new instance of SearchTestProperties.
- #possible_status_search? ⇒ Boolean
- #saves_delayed_references? ⇒ Boolean
- #test_medication_inclusion? ⇒ Boolean
- #test_post_search? ⇒ Boolean
- #test_reference_variants? ⇒ Boolean
Constructor Details
#initialize(**properties) ⇒ SearchTestProperties
Returns a new instance of SearchTestProperties.
20 21 22 23 24 25 26 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 20 def initialize(**properties) properties.each do |key, value| raise StandardError, "Unkown search test property: #{key}" unless ATTRIBUTES.include?(key) instance_variable_set(:"@#{key}", value) end end |
Instance Method Details
#first_search? ⇒ Boolean
28 29 30 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 28 def first_search? !!first_search end |
#fixed_value_search? ⇒ Boolean
32 33 34 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 32 def fixed_value_search? !!fixed_value_search end |
#possible_status_search? ⇒ Boolean
40 41 42 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 40 def possible_status_search? !!possible_status_search end |
#saves_delayed_references? ⇒ Boolean
36 37 38 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 36 def saves_delayed_references? !!saves_delayed_references end |
#test_medication_inclusion? ⇒ Boolean
44 45 46 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 44 def test_medication_inclusion? !!test_medication_inclusion end |
#test_post_search? ⇒ Boolean
52 53 54 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 52 def test_post_search? !!test_post_search end |
#test_reference_variants? ⇒ Boolean
48 49 50 |
# File 'lib/us_core_test_kit/search_test_properties.rb', line 48 def test_reference_variants? !!test_reference_variants end |