Sha256: cbfcbd0775c217638121a7a7d0fe2700800c306e6b15a361116a8d9b85994264

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

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 match({
      person: {first_name: "Avdi", last_name: "Grim"},
      company: {name: "ShipRise", url: a_string_matching(/tablexi/)}
    })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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