This commit is contained in:
Michael Miller 2021-07-10 22:51:47 -06:00
parent dba20757f3
commit 766b6b17c7
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -0,0 +1,26 @@
require "../spec_helper"
Spectator.describe "GitHub Issue #33" do
class Test
def method2
end
def method1
method2
end
end
mock Test do
stub method2
end
describe Test do
describe "#method1" do
it do
expect(subject).to receive(:method2)
subject.method1
end
end
end
end