mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
e2130d12d3
Implements https://github.com/icy-arctic-fox/spectator/issues/47 Some specs are failing and need to be resolved before the new feature is considered done.
18 lines
297 B
Crystal
18 lines
297 B
Crystal
require "../spec_helper"
|
|
|
|
Spectator.describe "GitHub Issue #47" do
|
|
class Original
|
|
def foo(arg1, arg2)
|
|
# ...
|
|
end
|
|
end
|
|
|
|
mock Original
|
|
|
|
let(fake) { mock(Original) }
|
|
|
|
specify do
|
|
expect(fake).to receive(:foo).with("arg1", arg2: "arg2")
|
|
fake.foo("arg1", "arg2")
|
|
end
|
|
end
|