Sha256: d26422f4a55cfeb065637eaaa9e8d327cca7f9be413e0364e5a363c41aa7a931

Contents?: true

Size: 760 Bytes

Versions: 10

Compression:

Stored size: 760 Bytes

Contents

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')
  r = OpenStruct.new
  r.user_agent = ua
  r.ip = '192.168.1.1'
  @request ||= r
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
split-1.0.0 spec/spec_helper.rb
split-0.8.0 spec/spec_helper.rb
split-0.7.3 spec/spec_helper.rb
split-0.7.2 spec/spec_helper.rb
split-0.7.1 spec/spec_helper.rb
split-0.7.0 spec/spec_helper.rb
split-0.6.6 spec/spec_helper.rb
split-0.6.5 spec/spec_helper.rb
split-0.6.4 spec/spec_helper.rb
split-0.6.3 spec/spec_helper.rb