No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Latest commit 180eda2 Jan 12, 2012 @vitalish vitalish Merge pull request #1 from daveworth/master
README added
Permalink
Failed to load latest commit information.
lib new version Jun 2, 2011
spec some tests + guard Jun 2, 2011
.gitignore some tests + guard Jun 2, 2011
Gemfile init Jun 2, 2011
Guardfile some tests + guard Jun 2, 2011
README.md made get request more accurate Oct 24, 2011
Rakefile init Jun 2, 2011
rspec-deep-matchers.gemspec move version file Jun 2, 2011

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