PageRenderTime 63ms CodeModel.GetById 37ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/bundle/ruby/1.9.1/gems/webrat-0.7.3/spec/integration/sinatra/test/modular_app_test.rb

https://bitbucket.org/sqctest02/sample_app_3_1
Ruby | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | f7ffb2d5a783d999d9211949b40ab591 MD5 | raw file
Possible License(s): GPL-2.0
  1. require File.dirname(__FILE__) + "/test_helper"
  2. require File.dirname(__FILE__) + "/../modular_app"
  3. class MyModularAppTest < Test::Unit::TestCase
  4. def app
  5. MyModularApp
  6. end
  7. def test_it_works
  8. visit "/"
  9. assert_contain "Hello World"
  10. end
  11. def test_redirects
  12. visit "/redirect_absolute_url"
  13. assert_equal "spam", response_body
  14. end
  15. end