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 == <