Sha256: 77a764babd08176e5ce478035bdcdb952743389a3c945fbc8da9c87aabee2467

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'split'
require 'ostruct'

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

8 entries across 8 versions & 1 rubygems

Version Path
split-0.4.0 spec/spec_helper.rb
split-0.3.3 spec/spec_helper.rb
split-0.3.2 spec/spec_helper.rb
split-0.3.1 spec/spec_helper.rb
split-0.3.0 spec/spec_helper.rb
split-0.2.4 spec/spec_helper.rb
split-0.2.3 spec/spec_helper.rb
split-0.2.2 spec/spec_helper.rb