Sha256: 901c5265110eb577900290d70bd107a7b3dad87eb7a76f62c10bb0ad7fef1469

Contents?: true

Size: 454 Bytes

Versions: 6

Compression:

Stored size: 454 Bytes

Contents

ENV['RACK_ENV'] = "test"

require 'rubygems'
require 'bundler/setup'
require 'split'
require 'ostruct'
require 'complex' if RUBY_VERSION.match(/1\.8/)

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

6 entries across 6 versions & 1 rubygems

Version Path
split-0.4.6 spec/spec_helper.rb
split-0.4.5 spec/spec_helper.rb
split-0.4.4 spec/spec_helper.rb
split-0.4.3 spec/spec_helper.rb
split-0.4.2 spec/spec_helper.rb
split-0.4.1 spec/spec_helper.rb