shard-spectator/spec/issues/github_issue_47_spec.cr

19 lines
298 B
Crystal
Raw Normal View History

require "../spec_helper"
Spectator.describe "GitHub Issue #47" do
class Original
def foo(arg1, arg2)
# ...
end
end
mock Original
let(fake) { mock(Original) }
2022-10-10 00:23:39 +00:00
xspecify do
expect(fake).to receive(:foo).with("arg1", arg2: "arg2")
fake.foo("arg1", "arg2")
end
end