Skip to content

Instantly share code, notes, and snippets.

@reactormonk
Created March 18, 2010 14:53
Show Gist options
  • Select an option

  • Save reactormonk/336427 to your computer and use it in GitHub Desktop.

Select an option

Save reactormonk/336427 to your computer and use it in GitHub Desktop.
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