Sha256: ce25d86ac8dee979baa7088e2ef03504f088a03fb97854188dc7fd204d517f26
Contents?: true
Size: 621 Bytes
Versions: 16
Compression:
Stored size: 621 Bytes
Contents
require 'aruba/cucumber' Before('@needs_apiary_api_key') do @aruba_timeout_seconds = 45 end Around('@needs_apiary_api_key') do |_scenario, block| # DEBUG puts "Scenario #{scenario.name} wants APIARY_API_KEY." original_value = ENV.delete('APIARY_API_KEY') ENV['APIARY_API_KEY'] = '5a96f04006effca6cc03f1616ed916eb' block.call ENV['APIARY_API_KEY'] = original_value end Around('@doesnt_need_apiary_api_key') do |_scenario, block| # DEBUG puts "Scenario #{scenario.name} doesn't want APIARY_API_KEY." original_value = ENV.delete('APIARY_API_KEY') block.call ENV['APIARY_API_KEY'] = original_value end
Version data entries
16 entries across 16 versions & 1 rubygems