spec/unit/resources/base_spec.rb in chef-api-0.2.1 vs spec/unit/resources/base_spec.rb in chef-api-0.3.0

- old
+ new

@@ -34,11 +34,11 @@ end end describe '.build' do it 'creates a new instance' do - described_class.stub(:new) - described_class.stub(:schema).and_return(double(attributes: {})) + allow(described_class).to receive(:new) + allow(described_class).to receive(:schema).and_return(double(attributes: {})) expect(described_class).to receive(:new).with({foo: 'bar'}, {}) described_class.build(foo: 'bar') end end