Sha256: f8a3b90f283cf5a029272feb1357812cf15418442f54e8c7e7e05e6a428017eb
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
begin require 'rack/test' rescue Gem::LoadError => e raise(e) rescue ::LoadError STDERR.puts "Error: please install the rack-test gem in order to run the spec tests" exit -1 end module Helpers module Web module RackApp include Rack::Test::Methods attr_reader :app def app=(server) @app = server @app.set :environment, :test end def get_host(path,host,params={},headers={}) get(path,params,headers.merge('HTTP_HOST' => host)) end def post_host(path,host,params={},headers={}) post(path,params,headers.merge('HTTP_HOST' => host)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-web-0.3.0.pre2 | spec/web/helpers/rack_app.rb |
ronin-web-0.3.0.pre1 | spec/web/helpers/rack_app.rb |