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

Version Path
apiaryio-0.17.0 features/support/env.rb
apiaryio-0.16.1 features/support/env.rb
apiaryio-0.16.0 features/support/env.rb
apiaryio-0.15.2 features/support/env.rb
apiaryio-0.15.1 features/support/env.rb
apiaryio-0.15.0 features/support/env.rb
apiaryio-0.14.1 features/support/env.rb
apiaryio-0.14.0 features/support/env.rb
apiaryio-0.13.0 features/support/env.rb
apiaryio-0.12.0 features/support/env.rb
apiaryio-0.11.1 features/support/env.rb
apiaryio-0.11.0 features/support/env.rb
apiaryio-0.10.2 features/support/env.rb
apiaryio-0.10.1 features/support/env.rb
apiaryio-0.9.1 features/support/env.rb
apiaryio-0.9.0 features/support/env.rb