diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-11-22 18:03:58 +0100 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-11-22 18:03:58 +0100 |
commit | cb084fcb178e23fd7f51bf22f491e32f47a7e8e2 (patch) | |
tree | 06ba4325d530410f0d3b37311012770c5808b71f /spec/support | |
parent | c18c61a49af70a18e7767f8d649ca2b1924689e2 (diff) | |
download | gitlab-ce-git-user-encoding.tar.gz |
rename matchergit-user-encoding
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/matchers/be_a_binary_string.rb (renamed from spec/support/matchers/be_binary.rb) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers/be_binary.rb b/spec/support/matchers/be_a_binary_string.rb index c517d7370be..f041ae76167 100644 --- a/spec/support/matchers/be_binary.rb +++ b/spec/support/matchers/be_a_binary_string.rb @@ -1,4 +1,4 @@ -RSpec::Matchers.define :be_binary do |_| +RSpec::Matchers.define :be_a_binary_string do |_| match do |actual| actual.is_a?(String) && actual.encoding == Encoding.find('ASCII-8BIT') end |