diff options
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/be_like.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/matchers/be_like.rb b/spec/support/matchers/be_like.rb index 0608abbbb4..ca49b91274 100644 --- a/spec/support/matchers/be_like.rb +++ b/spec/support/matchers/be_like.rb @@ -1,12 +1,12 @@ module Matchers class BeLike def initialize(expected) - @expected = expected + @expected = expected.gsub(/\s+/, ' ').strip end def matches?(actual) - @actual = actual - @expected.gsub(/\s+/, ' ').strip == @actual.gsub(/\s+/, ' ').strip + @actual = actual.gsub(/\s+/, ' ').strip + @expected == @actual end def failure_message |