Skip to content
Browse files

added forward compatibility to response mocks for Rails > 2

  • Loading branch information...
1 parent e6922a1 commit 15f93da9679483aea2464e81442d64b1970f8807 @vanntastic vanntastic committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/test/spec/rails/test_dummy.rb
View
5 lib/test/spec/rails/test_dummy.rb
@@ -5,6 +5,11 @@ class Test::Spec::Rails::TestDummy
if defined?(ActionController::TestCase::Assertions)
include ActionController::TestCase::Assertions
end
+
+ # Rails > 2 moved Assertions module to the ActionController class
+ if defined?(ActionController::Assertions)
+ include ActionController::Assertions
+ end
def initialize(testcase)
@controller = testcase.instance_variable_get('@controller')

0 comments on commit 15f93da

Please sign in to comment.
Something went wrong with that request. Please try again.