Skip to content

Instantly share code, notes, and snippets.

@fables-tales
Created November 27, 2015 10:54
Show Gist options
  • Save fables-tales/2dea752b109d36a21641 to your computer and use it in GitHub Desktop.
Save fables-tales/2dea752b109d36a21641 to your computer and use it in GitHub Desktop.
RSpec::Matchers.define :eq_without_whitespace do |expected|
match do |actual|
actual.gsub(/\s/, "") == expected
end
end
@AJFaraday
Copy link

😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment