Sha256: d926a27589c066c2425e71614720058c3c2754c5a98322129f4d6fa2a1482b4a
Contents?: true
Size: 455 Bytes
Versions: 30
Compression:
Stored size: 455 Bytes
Contents
# For storing any examples shared between multiple tests # Any object which defines a .to_json should import this test shared_examples "to_json equivalent to Chef::JSONCompat.to_json" do let(:jsonable) do raise "You must define the subject when including this test" end it "should allow consumers to call #to_json or Chef::JSONCompat.to_json" do expect(jsonable.to_json).to eq(Chef::JSONCompat.to_json(jsonable)) end end
Version data entries
30 entries across 30 versions & 1 rubygems