ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1K
active users

James :ruby:

Mocha v2.7.0 released

* Fail fast if invocation matches never expectation - thanks to Duke Tran & @DavidStosik for reporting

This fixes a long-time bug so that the following will fail fast instead of passing:

foo.stubs(:bar)
foo.expects(:bar).never
foo.bar # => unexpected invocation error

rubygems.org/gems/mocha/versio

rubygems.orgmocha | RubyGems.org | your community gem host
#ruby#testing#mock

@floehopper This found a bug in one of our tests. Yay! Thanks!