Sha256: b103ade416f5b963508a6f538a07e29a01987ff59ba41826513e38d7867a7061

Contents?: true

Size: 635 Bytes

Versions: 33

Compression:

Stored size: 635 Bytes

Contents

require 'aruba/cucumber'
require File.expand_path(File.join(File.dirname(__FILE__), '../../spec/support/localeapp_integration_data'))
World(LocaleappIntegrationData)

ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"

module FakeWebHelper
  def add_fake_web_uri(method, uri, status, body, headers = {})
    fakes = JSON.parse(ENV['FAKE_WEB_FAKES'] || '[]')
    fakes << {
      'method' => method,
      'uri' => uri,
      'status' => status,
      'body' => body,
      'headers' => headers
    }
    ENV['FAKE_WEB_FAKES'] = fakes.to_json
  end
end
World(FakeWebHelper)

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
localeapp-0.7.2 features/support/env.rb
localeapp-0.7.1 features/support/env.rb
localeapp-0.7.0 features/support/env.rb
localeapp-0.6.14 features/support/env.rb
localeapp-0.6.13 features/support/env.rb
localeapp-0.6.12 features/support/env.rb
localeapp-0.6.10 features/support/env.rb
localeapp-0.6.9 features/support/env.rb
localeapp-0.6.8 features/support/env.rb
localeapp-0.6.7 features/support/env.rb
localeapp-0.6.6 features/support/env.rb
localeapp-0.6.5 features/support/env.rb
localeapp-0.6.4 features/support/env.rb
localeapp-0.6.3 features/support/env.rb
localeapp-0.6.2 features/support/env.rb
localeapp-0.6.1 features/support/env.rb
localeapp-0.6.0 features/support/env.rb
localeapp-0.5.2 features/support/env.rb
localeapp-0.5.1 features/support/env.rb
localeapp-0.5.0 features/support/env.rb