Permalink
Browse files

Address test_binary_data_is_not_logged with Oracle database

The number of sql statement logged depends on each database adapter
implementation.
Also, this test does not depends on how many sql statement executed.
  • Loading branch information...
1 parent e68abc2 commit 2d4b2431a8af9014fca9422df5b0644a740f7992 @yahonda yahonda committed Dec 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/test/cases/log_subscriber_test.rb
View
3 activerecord/test/cases/log_subscriber_test.rb
@@ -107,7 +107,6 @@ def test_binary_data_is_not_logged
Binary.create(:data => 'some binary data')
wait
- assert_equal 3, @logger.logged(:debug).size
- assert_match(/<16 bytes of binary data>/, @logger.logged(:debug)[-2])
+ assert_match(/<16 bytes of binary data>/, @logger.logged(:debug).join)
end
end

0 comments on commit 2d4b243

Please sign in to comment.