aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_controller/integration_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/integration_test.rb b/actionpack/lib/action_controller/integration_test.rb
index f99ef7ed7f..d16d8b00b5 100644
--- a/actionpack/lib/action_controller/integration_test.rb
+++ b/actionpack/lib/action_controller/integration_test.rb
@@ -488,6 +488,9 @@ module ActionController
klass.send(:define_method, name) { |*args| tests.send(name, *args) }
end
+ # delegate add_assertion to the test case
+ klass.send(:define_method, :add_assertion) { tests.add_assertion }
+
yield session if block_given?
session
end