Sha256: 08ae812c8a889e5cb77473d8f5380784345c39965458cfb1fee08ddc45a1f316
Contents?: true
Size: 419 Bytes
Versions: 85
Compression:
Stored size: 419 Bytes
Contents
require 'spec_helper' require 'pact/matchers/unexpected_key' module Pact describe UnexpectedKey do describe "#as_json" do it "returns a string representation of the object" do expect(subject.as_json).to eq subject.to_s end end describe "#to_json" do it "serialises the object to JSON" do expect(subject.to_json).to eq "\"#{subject.to_s}\"" end end end end
Version data entries
85 entries across 85 versions & 2 rubygems