Sha256: ad289d519693db840b2e4dadd23103bd8e7d6b9d674834fb2df8657bb0c4cd3f

Contents?: true

Size: 627 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
apiaryio-0.8.1 features/support/env.rb
apiaryio-0.8.0 features/support/env.rb
apiaryio-0.7.0 features/support/env.rb
apiaryio-0.6.1 features/support/env.rb
apiaryio-0.6.0 features/support/env.rb
apiaryio-0.5.2 features/support/env.rb
apiaryio-0.5.1 features/support/env.rb
apiaryio-0.5.0 features/support/env.rb