Created
September 17, 2009 02:51
-
-
Save dmeiz/188313 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "test/unit" | |
require "webrat" | |
require "webrat/sinatra" | |
require "app" | |
Webrat.configure do |config| | |
config.mode = :rack | |
end | |
class AppTest < Test::Unit::TestCase | |
include Webrat::Methods | |
include Webrat::Matchers | |
def test_it_works | |
visit "/" | |
assert_contain("Hello World") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment