public
Fork of bmizerany/sinatra
Description: Classy web-development dressed in a DSL
Homepage: http://sinatrarb.com
Clone URL: git://github.com/JackDanger/sinatra.git
Search Repo:
err.
Blake Mizerany (author)
Fri Apr 11 14:09:23 -0700 2008
commit  02626e91b9431f64fb55e3ab6b97e39ad0415c33
tree    295b587b666a3725b7b87c4021447cb6283db6af
parent  53c6609f39a6b1901b46660c01e9ba1cb4ebe07d
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@ module Sinatra
0
 
0
       %w(get head post put delete).each do |m|
0
         define_method("#{m}_it") do |path, *args|
0
- request = Rack::MockRequest.new(Sinatra.application)
0
+ request = Rack::MockRequest.new(Sinatra.build_application)
0
           env, input = if args.size == 2
0
             [args.last, args.first]
0
           elsif args.size == 1
...
32
33
34
35
 
36
37
38
...
32
33
34
 
35
36
37
38
0
@@ -32,7 +32,7 @@ context "Sessions" do
0
       session[:test] == true ? "true" : "false"
0
     end
0
 
0
- get_it '/foo', {}, 'HTTP_HOST' => 'foo.sinatrarb.com'
0
+ get_it '/foo', :env => { :host => 'foo.sinatrarb.com' }
0
     assert ok?
0
     assert include?('Set-Cookie')
0
   end

Comments

    No one has commented yet.