From a9eab6d984b407850d9e40897fc71be4da48e18f Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Sun, 6 Mar 2011 11:59:42 +1100 Subject: [PATCH] Fix spec so it runs in today's Sinatra --- spec/url_for_spec.rb | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/spec/url_for_spec.rb b/spec/url_for_spec.rb index e9e7754..d34788a 100644 --- a/spec/url_for_spec.rb +++ b/spec/url_for_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' require 'sinatra' -require 'sinatra/test' require 'sinatra/url_for' +require 'rack/test' get "/" do content_type "text/plain" @@ -13,11 +13,16 @@ end describe Sinatra::UrlForHelper do - include Sinatra::Test + include Rack::Test::Methods + + def app + Sinatra::Application + end + it "should return absolute paths and full URLs" do get "/" - response.should be_ok - response.body.should == <