aboutsummaryrefslogtreecommitdiffstats
path: root/spec/matchers/be_like.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/matchers/be_like.rb')
-rw-r--r--spec/matchers/be_like.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/matchers/be_like.rb b/spec/matchers/be_like.rb
index cea3f3027b..c1b1ffc3fd 100644
--- a/spec/matchers/be_like.rb
+++ b/spec/matchers/be_like.rb
@@ -4,17 +4,17 @@ module BeLikeMatcher
@expected = expected
end
- def matches?(target)
- @target = target
- @expected.gsub(/\s+/, ' ').strip == @target.gsub(/\s+/, ' ').strip
+ def matches?(actual)
+ @actual = actual
+ @expected.gsub(/\s+/, ' ').strip == @actual.gsub(/\s+/, ' ').strip
end
def failure_message
- "expected #{@target} to be like #{@expected}"
+ "expected #{@actual} to be like #{@expected}"
end
def negative_failure_message
- "expected #{@target} to be unlike #{@expected}"
+ "expected #{@actual} to be unlike #{@expected}"
end
end