/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
- require File.dirname(__FILE__) + "/test_helper"
- require File.dirname(__FILE__) + "/../modular_app"
- class MyModularAppTest < Test::Unit::TestCase
- def app
- MyModularApp
- end
- def test_it_works
- visit "/"
- assert_contain "Hello World"
- end
- def test_redirects
- visit "/redirect_absolute_url"
- assert_equal "spam", response_body
- end
- end