Low commit activity in last 3 years
A long-lived project that still receives updates
String matcher to ignore whitespace.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 1.60.2
>= 0.5.1
>= 0

Runtime

>= 3.2
 Project Readme

rspec-match_fuzzy

CI

String matcher to ignore whitespace.

Installation

Add this line to your application's Gemfile:

gem 'rspec-match_fuzzy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rspec-match_fuzzy

Usage

require 'rspec/match_fuzzy'

it '...' do
  str1 = <<-EOS
    London Bridge
    Is Broken down,
    Dance over my Lady Lee.
    London Bridge
    Is Broken down
    With a gay Lady.
  EOS

  str2 = <<-EOS
    London  Bridge
    Is  Broken  down,

    Dance over my Lady Lee.


    London\tBridge
    Is\tBroken\tdown
    With a gay Lady.
  EOS

  expect(str1).to match_fuzzy str2
end