Sha256: a4e45a34da5f993bdf46cce82a5744798d8ef2c626fa1b591e971b1a9f38c39b

Contents?: true

Size: 434 Bytes

Versions: 3

Compression:

Stored size: 434 Bytes

Contents

require "diff_matcher/rspec_3"

RSpec.describe "a complex example" do
  let(:response) {{person: {first_name: "Noel", last_name: "Rappin"},
                  company: {name: "Table XI", url: "www.tablexi.com"}}}

  it "gets the right response" do
    expect(response).to be_matching({
      person: {first_name: "Avdi", last_name: "Grim"},
      company: {name: "ShipRise", url: /tablexi/}
    }).with_options(quiet: false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
diff_matcher-2.9.0 doc/even_more_tapas_spec.rb
diff_matcher-2.8.1 doc/even_more_tapas_spec.rb
diff_matcher-2.8.0 doc/even_more_tapas_spec.rb