Skip to content

Commit

Permalink
err.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mizerany committed Apr 11, 2008
1 parent 53c6609 commit 02626e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sinatra/test/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def map_easys(params)

%w(get head post put delete).each do |m|
define_method("#{m}_it") do |path, *args|
request = Rack::MockRequest.new(Sinatra.application)
request = Rack::MockRequest.new(Sinatra.build_application)
env, input = if args.size == 2
[args.last, args.first]
elsif args.size == 1
Expand Down
2 changes: 1 addition & 1 deletion test/sessions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
session[:test] == true ? "true" : "false"
end

get_it '/foo', {}, 'HTTP_HOST' => 'foo.sinatrarb.com'
get_it '/foo', :env => { :host => 'foo.sinatrarb.com' }
assert ok?
assert include?('Set-Cookie')
end
Expand Down

0 comments on commit 02626e9

Please sign in to comment.