spec/support/integration_specs.rb
def run_all_integration_specs(handler: ->(_code) {}, logger: ->(_msg) {})
  Dir['spec/integration/*']
    .map { |directory| directory.split('/').last }
    .each do |integration|
      logger.call(%(Running "#{integration}" integration spec))
      system(integration_command(integration, 'bundle --quiet'))
      system(integration_command(integration, "bundle exec rspec #{integration_path(integration)}"))
      handler.call($CHILD_STATUS.exitstatus)
    end
end
# Runs all integration specs in their own environment
Runs all integration specs in their own environment
Runs all integration specs in their own environment
def run_all_integration_specs(handler: ->(_code) {}, logger: ->(_msg) {})
  Dir['spec/integration/*']
    .map { |directory| directory.split('/').last }
    .each do |integration|
      logger.call(%(Running "#{integration}" integration spec))
      system(integration_command(integration, 'bundle --quiet'))
      system(integration_command(integration, "bundle exec rspec #{integration_path(integration)}"))
      handler.call($CHILD_STATUS.exitstatus)
    end
end
def run_all_integration_specs ( handler : -> ( _code ) { } , logger : -> ( _msg ) { } ) Dir [ 'spec/integration/*' ] . map { | directory | directory . split ( '/' ) . last } . each do | integration | logger . call ( %(Running "#{integration}" integration spec) ) system ( integration_command ( integration , 'bundle --quiet' ) ) system ( integration_command ( integration , "bundle exec rspec #{integration_path(integration)}" ) ) handler . call ( $CHILD_STATUS . exitstatus ) end end
Runs all integration specs in their own environment
Runs all integration specs in their own environment
handler
_code
logger
_msg