mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
15 lines
341 B
Ruby
15 lines
341 B
Ruby
# frozen_string_literal: false
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe ReportBlob, type: :model do
|
|
it "preserves UTF-8 content" do
|
|
content = "This works. ✓"
|
|
|
|
expect do
|
|
blob = ReportBlob.create!("customers.html", content)
|
|
content = blob.result
|
|
end.not_to change { content.encoding }.from(Encoding::UTF_8)
|
|
end
|
|
end
|