blob: ea806352422ba00294f24b2252cda9dfba802a7e (
plain)
1
2
3
4
5
6
7
8
9
|
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
|