Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master

This branch is 1 commit ahead of vitalish:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Guardfile
README.md
Rakefile
rspec-deep-matchers.gemspec

README.md

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
Something went wrong with that request. Please try again.