diff options
author | Jamis Buck <jamis@37signals.com> | 2006-03-10 18:00:53 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-03-10 18:00:53 +0000 |
commit | 8152695b809aa47177ab5d5db43d93d8f55ee52a (patch) | |
tree | bda4567626f2ad61e9e09ff8fdb8cbdcbb01aac2 /actionpack/lib | |
parent | 51d6bc2807d7899723f72aa4dba6851b8b135a65 (diff) | |
download | rails-8152695b809aa47177ab5d5db43d93d8f55ee52a.tar.gz rails-8152695b809aa47177ab5d5db43d93d8f55ee52a.tar.bz2 rails-8152695b809aa47177ab5d5db43d93d8f55ee52a.zip |
Make assertions in integration sessions proxy to the test instance (only for sessions created via open_session)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3836 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/integration_test.rb | 3 |
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 |