Sha256: 3df40a9b9b067ad9671f5f2edc416cd31565f1a31e27e22f65f1046aa4e6d4ba
Contents?: true
Size: 586 Bytes
Versions: 12
Compression:
Stored size: 586 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 = YAML.load(aruba.environment['FAKE_WEB_FAKES'] || '[]') fakes << { 'method' => method, 'uri' => uri, 'status' => status, 'body' => body, 'headers' => headers } set_environment_variable 'FAKE_WEB_FAKES', YAML.dump(fakes) end end World(FakeWebHelper)
Version data entries
12 entries across 12 versions & 1 rubygems