Skip to content

Commit

Permalink
Spec CSVConverter#to_csv from MySQL utf8mb4 is only relevant on Activ…
Browse files Browse the repository at this point in the history
…eRecord
  • Loading branch information
dburt committed Apr 26, 2015
1 parent 990acb6 commit 88eb39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rails_admin/support/csv_converter_spec.rb
Expand Up @@ -35,7 +35,7 @@
context 'when encoding FROM MySQL utf8mb4' do
let(:encoding) { 'UTF-8' } # default

it 'exports to UTF-8 with BOM' do
it 'exports to UTF-8 with BOM', active_record: true do
# MySQL connection may report its encoding as 'utf8mb4'
expect(::ActiveRecord::Base.connection).to receive(:encoding) { 'utf8mb4' }
expect(subject[1]).to eq 'UTF-8'
Expand Down

0 comments on commit 88eb39f

Please sign in to comment.