Created
June 26, 2009 00:47
-
-
Save brynary/136258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 512356f0d77abff847528b49eb2dd9798d55fb27 | |
Author: Bryan Helmkamp <bryan@brynary.com> | |
Date: Thu Jun 25 20:47:10 2009 -0400 | |
Updating for latest rack-test | |
diff --git a/lib/webrat/sinatra.rb b/lib/webrat/sinatra.rb | |
index 10cdb02..4238bf9 100644 | |
--- a/lib/webrat/sinatra.rb | |
+++ b/lib/webrat/sinatra.rb | |
@@ -5,7 +5,7 @@ module Webrat | |
def initialize(context) | |
app = context.respond_to?(:app) ? context.app : Sinatra::Application | |
- super(Rack::Test::Session.new(app)) | |
+ super(Rack::Test::Session.new(Rack::MockSession.new(app))) | |
end | |
end | |
end | |
diff --git a/spec/integration/rack/test/webrat_rack_test.rb b/spec/integration/rack/test/webrat_rack_test.rb | |
index e3d760d..e406a78 100644 | |
--- a/spec/integration/rack/test/webrat_rack_test.rb | |
+++ b/spec/integration/rack/test/webrat_rack_test.rb | |
@@ -46,7 +46,7 @@ end | |
class WebratRackSetupTest < Test::Unit::TestCase | |
def test_usable_without_mixin | |
- rack_test_session = Rack::Test::Session.new(app) | |
+ rack_test_session = Rack::Test::Session.new(Rack::MockSession.new(app)) | |
adapter = Webrat::RackSession.new(rack_test_session) | |
session = Webrat::Session.new(adapter) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment