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