Sha256: 28a4b2902482d4569e037d6bd1dc9609d13a34698b55ff51f44b89b2f0db4136
Contents?: true
Size: 438 Bytes
Versions: 30
Compression:
Stored size: 438 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 equalivent to Chef::JSONCompat.to_json" do let(:jsonable) { raise "You must define the subject when including this test" } 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