diff options
author | Ronak Jangir <ronakjangir47@gmail.com> | 2015-08-16 01:05:42 +0530 |
---|---|---|
committer | Ronak Jangir <ronakjangir47@gmail.com> | 2015-08-25 22:07:25 +0530 |
commit | 796c83fca97483152c363ec240d278e1f9262897 (patch) | |
tree | 2d37da96651d160bbdf24ee974cf9c6404738a9b /activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | |
parent | 2170950b2f03383da69b275eb0710b78a4a2249a (diff) | |
download | rails-796c83fca97483152c363ec240d278e1f9262897.tar.gz rails-796c83fca97483152c363ec240d278e1f9262897.tar.bz2 rails-796c83fca97483152c363ec240d278e1f9262897.zip |
Removed mocha from Active Record Part 1
Diffstat (limited to 'activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 7718b29125..d160c30375 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -796,9 +796,10 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase end def test_association_proxy_transaction_method_starts_transaction_in_association_class - Post.expects(:transaction) - Category.first.posts.transaction do - # nothing + assert_called(Post, :transaction) do + Category.first.posts.transaction do + # nothing + end end end |