Permalink
Browse files

Fixed specs

  • Loading branch information...
1 parent cdc410a commit d034802951e0bb281f588a5d3dcb07dccd29b175 @ayanko ayanko committed Feb 18, 2013
Showing with 6 additions and 5 deletions.
  1. +2 −1 apps/test_rails_app.rb
  2. +2 −2 lib/rack_session_access/middleware.rb
  3. +2 −2 spec/middleware_spec.rb
View
@@ -1,4 +1,3 @@
-require 'rails'
require 'action_controller/railtie'
module TestRailsApp
@@ -33,3 +32,5 @@ def show
end
end
end
+
+Rails.logger = Logger.new('/dev/null')
@@ -38,8 +38,8 @@ def call(env)
# List session data
def show(request)
- # call inspect because session can be lazy loaded
- request.env[@key].inspect
+ # force load session because it can be lazy loaded
+ request.env[@key].delete(:rack_session_access_force_load_session)
case File.extname(request.path)
when ".raw"
View
@@ -146,7 +146,7 @@
end
context "rails application" do
- background { Capybara.app = TestRackApp }
+ background { Capybara.app = TestRailsApp::Application }
include_examples "common scenarios"
include_examples "rails scenarios"
end
@@ -168,7 +168,7 @@
end
context "rails application" do
- background { Capybara.app = TestRackApp }
+ background { Capybara.app = TestRailsApp::Application }
include_examples "common scenarios"
include_examples "rails scenarios"
end

0 comments on commit d034802

Please sign in to comment.