shard-spectator/spec/issues/github_issue_28_spec.cr
2022-03-19 17:20:15 -06:00

17 lines
308 B
Crystal

require "../spec_helper"
Spectator.describe "GitHub Issue #28" do
class Test
def foo
42
end
end
# mock Test
xit "matches method stubs with no_args", pending: "Mock redesign" do
test = Test.new
expect(test).to receive(:foo).with(no_args).and_return(42)
test.foo
end
end