diff options
author | Sean McGivern <sean@gitlab.com> | 2017-06-26 17:21:40 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-06-26 17:21:40 +0100 |
commit | d4a3474b9b7321898a00ddcbaf651099ab96b2ba (patch) | |
tree | dde5685ac5e77a5876e64983469070e238cd6505 /spec | |
parent | 676c559409b8b51e3e97abab24bbb44207744e13 (diff) | |
download | gitlab-ce-d4a3474b9b7321898a00ddcbaf651099ab96b2ba.tar.gz |
Fix Gitlab::Database.bulk_insert for non-UTF-8 data34324-gitlab-db-seed-is-broken
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/database_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/database_spec.rb b/spec/lib/gitlab/database_spec.rb index 5e6206b96c7..cbf6c35356e 100644 --- a/spec/lib/gitlab/database_spec.rb +++ b/spec/lib/gitlab/database_spec.rb @@ -176,6 +176,10 @@ describe Gitlab::Database, lib: true do described_class.bulk_insert('test', rows) end + + it 'handles non-UTF-8 data' do + expect { described_class.bulk_insert('test', [{ a: "\255" }]) }.not_to raise_error + end end describe '.create_connection_pool' do |