Sha256: 1c3d730269636a56be338945d3eac907471aab3ae5b23166c72499435bf6696b
Contents?: true
Size: 657 Bytes
Versions: 6
Compression:
Stored size: 657 Bytes
Contents
require 'aruba/cucumber' require 'aruba/jruby' 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
6 entries across 6 versions & 1 rubygems