mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Added test to illustrate bad binary blobs.
This commit is contained in:
parent
c4469e6c39
commit
96359d557d
2 changed files with 2 additions and 1 deletions
1
activerecord/test/assets/test.txt
Normal file
1
activerecord/test/assets/test.txt
Normal file
|
@ -0,0 +1 @@
|
|||
%00
|
|
@ -8,7 +8,7 @@ unless current_adapter?(:SybaseAdapter, :DB2Adapter, :FirebirdAdapter)
|
|||
require 'models/binary'
|
||||
|
||||
class BinaryTest < ActiveRecord::TestCase
|
||||
FIXTURES = %w(flowers.jpg example.log)
|
||||
FIXTURES = %w(flowers.jpg example.log test.txt)
|
||||
|
||||
def test_mixed_encoding
|
||||
str = "\x80"
|
||||
|
|
Loading…
Reference in a new issue