Sha256: 2407cf2bf872fbec8f10d4cdad8a507de5b3095ba71b48ce85bcb8a197bc462b
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
require 'rubygems' require 'rack' require 'test/unit' require 'shoulda' require 'mocha' $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'divining_rod' include Mocha::API 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]} stub(:env => env, :format => opts[:format]) end
Version data entries
5 entries across 5 versions & 1 rubygems