Sha256: 7e70982668252044454726fd9f37a068af582cc15774ddfb1c0bc9e3cd0fb7b8

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 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

  it "should allow consumers to call #to_json or Chef::JSONCompat.to_json" do
    expect(subject.to_json).to eq(Chef::JSONCompat.to_json(subject))
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chef-11.18.12-x86-mingw32 spec/support/shared/shared_examples.rb
chef-11.18.12 spec/support/shared/shared_examples.rb
chef-11.18.6-x86-mingw32 spec/support/shared/shared_examples.rb
chef-11.18.6 spec/support/shared/shared_examples.rb
chef-11.18.0-x86-mingw32 spec/support/shared/shared_examples.rb
chef-11.18.0 spec/support/shared/shared_examples.rb