aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2012-12-19 06:31:23 +0900
committerYasuo Honda <yasuo.honda@gmail.com>2012-12-19 10:55:49 +0900
commit2d4b2431a8af9014fca9422df5b0644a740f7992 (patch)
tree3205fc5f8e1599bdc2b53cf2d54d60ea88ffcb83
parente68abc2c967d67a15fd99247bd00547d8bd3170d (diff)
downloadrails-2d4b2431a8af9014fca9422df5b0644a740f7992.tar.gz
rails-2d4b2431a8af9014fca9422df5b0644a740f7992.tar.bz2
rails-2d4b2431a8af9014fca9422df5b0644a740f7992.zip
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.
-rw-r--r--activerecord/test/cases/log_subscriber_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/log_subscriber_test.rb b/activerecord/test/cases/log_subscriber_test.rb
index 9fee219753..345e83a102 100644
--- a/activerecord/test/cases/log_subscriber_test.rb
+++ b/activerecord/test/cases/log_subscriber_test.rb
@@ -107,7 +107,6 @@ class LogSubscriberTest < ActiveRecord::TestCase
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