Sha256: 89faa3b2978be5809cb3cc94cf5970ae01a183bba96cbf6c3aac18d7aa447c3c
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true def setup_adaptor_support(*adaptors) adaptors.each do |adaptor| key = adaptor.config.root_key support "#{key}_helpers" helpers_module = Object.const_get("#{adaptor.base_module.name.split('::').last}Helpers") env_key = "#{key}_qa".upcase RSpec.configure do |config| config.include helpers_module, adaptor: key config.around(:each, adaptor: key) do |example| if ENV.fetch(env_key, nil) == '1' example.run else skip "Set #{env_key}=1 to run #{key} QA tests" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.3.3 | qa/support/adaptor_support_setup.rb |
ledger_sync-1.3.2 | qa/support/adaptor_support_setup.rb |
ledger_sync-1.3.1 | qa/support/adaptor_support_setup.rb |