1
0
Fork 0
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:
Chris Feist 2012-01-30 23:26:41 -06:00 committed by Chris Feist
parent c4469e6c39
commit 96359d557d
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
%00

View file

@ -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"