Skip to content

Commit

Permalink
fi-2237 setting default validator url (#443)
Browse files Browse the repository at this point in the history
* setting default validator url

* fix url method getter
  • Loading branch information
rpassas authored Feb 2, 2024
1 parent d0dbe97 commit 9d6e3f1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion dev_suites/dev_demo_ig_stu1/demo_suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class DemoSuite < Inferno::TestSuite
end

validator do
url ENV.fetch('VALIDATOR_URL')
exclude_message { |message| message.type == 'info' }
end

Expand Down
2 changes: 1 addition & 1 deletion lib/inferno/dsl/fhir_resource_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def default_validator_url
# @param validator_url [String]
def url(validator_url = nil)
@url = validator_url if validator_url

@url ||= default_validator_url
@url
end

Expand Down
2 changes: 1 addition & 1 deletion lib/inferno/dsl/fhir_validation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def default_validator_url
# @param validator_url [String]
def url(validator_url = nil)
@url = validator_url if validator_url

@url ||= default_validator_url
@url
end

Expand Down

0 comments on commit 9d6e3f1

Please sign in to comment.