diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-02-10 22:50:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-02-10 22:50:13 -0800 |
commit | cdd293cb963b895ff580eb20d10f5d56ecb3d447 (patch) | |
tree | 4bdd030d0d4b7a4bdf2157c92c805e59a6d24f37 /activerecord | |
parent | 17a69c7ee113aef7e5882d2f90afcc9ac9589e4a (diff) | |
download | rails-cdd293cb963b895ff580eb20d10f5d56ecb3d447.tar.gz rails-cdd293cb963b895ff580eb20d10f5d56ecb3d447.tar.bz2 rails-cdd293cb963b895ff580eb20d10f5d56ecb3d447.zip |
fixing bit string test
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/datatype_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/datatype_test.rb b/activerecord/test/cases/adapters/postgresql/datatype_test.rb index 7351ed9013..33c796191e 100644 --- a/activerecord/test/cases/adapters/postgresql/datatype_test.rb +++ b/activerecord/test/cases/adapters/postgresql/datatype_test.rb @@ -545,13 +545,13 @@ _SQL def test_update_bit_string new_bit_string = '11111111' - new_bit_string_varying = 'FF' + new_bit_string_varying = '11111110' assert @first_bit_string.bit_string = new_bit_string assert @first_bit_string.bit_string_varying = new_bit_string_varying assert @first_bit_string.save assert @first_bit_string.reload - assert_equal @first_bit_string.bit_string, new_bit_string - assert_equal @first_bit_string.bit_string, @first_bit_string.bit_string_varying + assert_equal new_bit_string, @first_bit_string.bit_string + assert_equal new_bit_string_varying, @first_bit_string.bit_string_varying end def test_update_oid |