PageRenderTime 81ms CodeModel.GetById 2ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/bundle/ruby/1.9.1/gems/webrat-0.7.3/spec/integration/rack/test/helper.rb

https://bitbucket.org/sqctest01/sample_app_3_1
Ruby | 20 lines | 16 code | 3 blank | 1 comment | 0 complexity | d41ac969e1b2acc99f475d64baf2f7bd MD5 | raw file
Possible License(s): GPL-2.0
  1. require "test/unit"
  2. require "rack/test"
  3. # require "redgreen"
  4. $LOAD_PATH.unshift File.dirname(__FILE__) + "/../../../../lib"
  5. require "webrat"
  6. require File.dirname(__FILE__) + "/../app"
  7. Webrat.configure do |config|
  8. config.mode = :rack
  9. end
  10. class Test::Unit::TestCase
  11. def app
  12. Rack::Builder.new {
  13. use Rack::Lint
  14. run RackApp.new
  15. }
  16. end
  17. end