Sha256: 256062bbd6042abeebfddc3097505da1361362353006a4cb5c0fccbceb51c5b8
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 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 be_a_default_return_value end end
Version data entries
5 entries across 5 versions & 1 rubygems