shard-spectator/spec/issues/github_issue_33_spec.cr
2022-07-12 21:50:45 -06:00

26 lines
347 B
Crystal

require "../spec_helper"
Spectator.describe "GitHub Issue #33" do
class Test
def method2
end
def method1
method2
end
end
mock Test
describe Test do
subject { mock(Test) }
describe "#method1" do
it do
expect(subject).to receive(:method2)
subject.method1
end
end
end
end