Test for Rack
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/rack
spec
MIT-LICENSE
README.textile
Rakefile
rack-test.gemspec

README.textile

Test for Rack

Installation

sudo gem install jodosha-rack-test -s http://gems.github.com

Example

require “rubygems” require “rack” require “rack/test” class LegacyRoutesTest < Rack::Unit::TestCase def setup @app = LegacyRoutes end def test_should_redirect_to_project_page get “/pages/sashimi” assert_redirected_to “/projects/sashimi” end def test_should_return_not_found get “/pages/unknown” assert_response :not_found end end

Copyright

© 2009 Luca Guidi – http://lucaguidi.com, released under the MIT license