Created
March 18, 2010 14:53
-
-
Save reactormonk/336427 to your computer and use it in GitHub Desktop.
This file contains hidden or 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_relative 'init' | |
| require 'baretest' | |
| require 'rack/test' | |
| module Rack::Test::Methods | |
| def app | |
| Rango::Router.app | |
| end | |
| end | |
| BareTest::Assertion::Context.send :include, Rack::Test::Methods | |
| BareTest.suite "minitest" do | |
| setup :page, "/" do | |
| @page = "/" | |
| end | |
| setup :exercise do | |
| get @page | |
| end | |
| assert "response for :page is ok" do | |
| last_request.ok? | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment