Sha256: d24a69a635bb7b15780e02bf997395e7f0a745d41259f74606241dea58b70ea5
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 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) sample.__shadow__.has_received(:foo, [1,2,3]).should be_true end it "allows verifying that interactions didn't happen" do sample.__record__(:bar) sample.__shadow__.has_received(:foo, [1,2,3]).should be_false end it "returns self from record by default" do sample.__record__(:foo).should == sample end end
Version data entries
4 entries across 4 versions & 1 rubygems