Sha256: 6dc0009557d9566d3a910365f0a254f413f609ccf0eb9b4f493ca71c9d912a84

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'rubygems'
require 'spec'
require 'rack'
require  File.expand_path('../../lib/divining_rod', __FILE__)

def request_mock(opts)
  opts = {
           :host => 'example.com'
         }.merge(opts)
  env = {'HTTP_USER_AGENT' => opts[:ua], 'SERVER_NAME' => opts[:host], 'X_WAP_PROFILE' => opts[:wap_profile]}
  mock('RailsRequest', :env => env, :format => opts[:format])
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
divining_rod-0.5.0 spec/spec_helper.rb