No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit behind vitalish:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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