Skip to content

Commit

Permalink
Fix spec so it runs in today's Sinatra
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer committed Mar 6, 2011
1 parent 50db904 commit a9eab6d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions spec/url_for_spec.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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 == <<EOD
last_response.should be_ok
last_response.body.should == <<EOD
/
/foo
http://example.org/foo
Expand Down

0 comments on commit a9eab6d

Please sign in to comment.