summaryrefslogtreecommitdiff
path: root/spec/support/matchers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers')
-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