Sha256: 7ddc2fc879f107c32d6bb8f152c86e0fadd4c63e94bfdea70462c966f4c254f3
Contents?: true
Size: 813 Bytes
Versions: 2
Compression:
Stored size: 813 Bytes
Contents
# frozen_string_literal: true ENV['RACK_ENV'] = "test" require 'rubygems' require 'bundler/setup' require 'coveralls' Coveralls.wear! require 'split' require 'ostruct' require 'yaml' require 'complex' if RUBY_VERSION.match(/1\.8/) Dir['./spec/support/*.rb'].each { |f| require f } RSpec.configure do |config| config.order = 'random' config.before(:each) do Split.configuration = Split::Configuration.new Split.redis.flushall @ab_user = {} params = nil end end def session @session ||= {} end def params @params ||= {} end def request(ua = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; de-de) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27') @request ||= begin r = OpenStruct.new r.user_agent = ua r.ip = '192.168.1.1' r end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
split-1.4.1 | spec/spec_helper.rb |
split-1.4.0 | spec/spec_helper.rb |