No commit activity in last 3 years
No release in over 3 years
String matcher to ignore whitespace.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Development

>= 0

Runtime

>= 3.2
 Project Readme

rspec-match_fuzzy

String matcher to ignore whitespace.

Build Status

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