Sha256: 3fcbf854ff5c405feddfe66c0e72c4bd8a14324b1b84bd2039b487be8f9055cf
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 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"] = "340bda135034529ab2abf341295c3aa2" # XXX 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apiaryio-0.4.2 | features/support/env.rb |
apiaryio-0.4.1 | features/support/env.rb |
apiaryio-0.4.0-x86_64-darwin-13 | features/support/env.rb |