spec/support/matchers/be_like.rb in arel-0.3.3 vs spec/support/matchers/be_like.rb in arel-0.4.0

- old
+ new

@@ -1,13 +1,13 @@ 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 "expected\n#{@actual}\nto be like\n#{@expected}" end