Sha256: 93128cdd8ac245b6e0d3df724af1a3778c20b09454b528afe331c4761016a4c2
Contents?: true
Size: 647 Bytes
Versions: 2
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe Bogus::RecordInteractions do class SampleRecordsInteractions include Bogus::RecordInteractions end let(:sample) { SampleRecordsInteractions.new } it "allows verifying that interactions happened" do sample.__record__(:foo, 1, 2, 3) expect(sample.__shadow__.has_received(:foo, [1,2,3])).to be(true) end it "allows verifying that interactions didn't happen" do sample.__record__(:bar) expect(sample.__shadow__.has_received(:foo, [1,2,3])).to be(false) end it "returns self from record by default" do expect(sample.__record__(:foo)).to be_a_default_return_value end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | spec/bogus/stubbing/record_interactions_spec.rb |
bogus-0.1.6 | spec/bogus/stubbing/record_interactions_spec.rb |