mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
This commit is contained in:
parent
dba20757f3
commit
766b6b17c7
1 changed files with 26 additions and 0 deletions
26
spec/issues/github_issue_33_spec.cr
Normal file
26
spec/issues/github_issue_33_spec.cr
Normal 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
|
Loading…
Reference in a new issue