Sha256: 26418d831bfcca88b274989fe43a38e645d08af45d37f4bcbba8b42798fd7fdd
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 Bytes
Contents
require 'aruba/cucumber' require 'aruba/config/jruby' require File.expand_path(File.join(File.dirname(__FILE__), '../../spec/support/localeapp_integration_data')) World(LocaleappIntegrationData) module FakeWebHelper def add_fake_web_uri(method, uri, status, body, headers = {}) fakes = JSON.parse(aruba.environment['FAKE_WEB_FAKES'] || '[]') fakes << { 'method' => method, 'uri' => uri, 'status' => status, 'body' => body, 'headers' => headers } set_environment_variable 'FAKE_WEB_FAKES', fakes.to_json end end World(FakeWebHelper)
Version data entries
6 entries across 6 versions & 1 rubygems