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