diff options
author | Matt Aimonetti <mattaimonetti@gmail.com> | 2013-04-14 16:59:23 -0700 |
---|---|---|
committer | Matt Aimonetti <mattaimonetti@gmail.com> | 2013-04-14 16:59:23 -0700 |
commit | 280c5ed1f990c4b29ea214eeaf81d95a8407ce93 (patch) | |
tree | a91a28f9de38e2884735337decd5b8197859e40e /activerecord/test | |
parent | 0ddfd75bf67853f14885ff6fbabc65dedb573470 (diff) | |
download | rails-280c5ed1f990c4b29ea214eeaf81d95a8407ce93.tar.gz rails-280c5ed1f990c4b29ea214eeaf81d95a8407ce93.tar.bz2 rails-280c5ed1f990c4b29ea214eeaf81d95a8407ce93.zip |
fix for the bytea/binary nil value bug
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/bytea_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/bytea_test.rb b/activerecord/test/cases/adapters/postgresql/bytea_test.rb index 92f0b5ee04..d7d77f96e2 100644 --- a/activerecord/test/cases/adapters/postgresql/bytea_test.rb +++ b/activerecord/test/cases/adapters/postgresql/bytea_test.rb @@ -69,7 +69,7 @@ class PostgresqlByteaTest < ActiveRecord::TestCase assert_equal(data, record.payload) end - def test_write_file + def test_write_binary data = File.read(File.join(File.dirname(__FILE__), '..', '..', '..', 'assets', 'example.log')) assert(data.size > 1) record = ByteaDataType.create(payload: data) |