Sha256: 766777e6fb7bf415c9e7a49fc3d49e9eddc0031b3915afaf7a5aa709d1937b13
Contents?: true
Size: 387 Bytes
Versions: 7
Compression:
Stored size: 387 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) describe 'spies' do it "validates that a Double was called after it was called" do stub(subject).foobar subject.foobar(1, 2) expect(subject).to have_received.foobar(1, 2) expect { expect(subject).to have_received.foobar(1, 2, 3) }.to raise_error(RSpec::Expectations::ExpectationNotMetError) end end
Version data entries
7 entries across 7 versions & 1 rubygems