No commit activity in last 3 years
No release in over 3 years
Deep Hash matcher for rspec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.0.0
 Project Readme

RSpec Deep Matchers

This gem adds a custom matcher to RSpec to recursively compare nested Ruby data-structures consisting of Hash and Array elements.

Example Usage

describe "deep matchers usage" do
  it "should compare data-structures recursively" do
    expected = {:key => ["values", "are", ["good"]]}

    get :get_expected_json, :format => js

    body = JSON.parse(response.body)
    body.should deep_eql expected
  end
end