f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
11 lines
232 B
Ruby
11 lines
232 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec::Matchers.define :be_utf8 do |_|
|
|
match do |actual|
|
|
actual.is_a?(String) && actual.encoding == Encoding.find('UTF-8')
|
|
end
|
|
|
|
description do
|
|
"be a String with encoding UTF-8"
|
|
end
|
|
end
|