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.4.3 features/support/env.rb
localeapp-0.4.2 features/support/env.rb
localeapp-0.4.1 features/support/env.rb
localeapp-0.4.0 features/support/env.rb
localeapp-0.3.2 features/support/env.rb
localeapp-0.3.1 features/support/env.rb
localeapp-0.3.0 features/support/env.rb
localeapp-0.2.0 features/support/env.rb
localeapp-0.1.2 features/support/env.rb
localeapp-0.1.1 features/support/env.rb
localeapp-0.0.11 features/support/env.rb
localeapp-0.0.10 features/support/env.rb
localeapp-0.0.8 features/support/env.rb