You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the docs [1]:
> This option only works for Ruby < v2.2.0. In later versions of Ruby
> `nil` is frozen and so a `StubbingError` will be raised if you
> attempt to stub a method on `nil`.
I'm planning to drop support for Ruby v2.1 [2] at which point, this
configuration option will be moot.
Closes#693.
[1]: https://mocha.jamesmead.org/Mocha/Configuration.html#stubbing_method_on_nil=-instance_method
[2]: #628
This version has been EOL since 31 Mar 2017 [1], which is almost 8 years
ago.
`Mocha::Configuration#stubbing_method_on_nil` and `StubbingNilTest` are
now moot, because as of Ruby v2.2 `nil` is frozen. The behaviour tested
in the latter is already tested in the more generic
`StubbingFrozenObjectTest`. See this commit [2] for details.
Closes#628.
[1]: https://www.ruby-lang.org/en/downloads/branches/
[2]: a65ea1e
This version has been EOL since 31 Mar 2017, i.e. nearly 8 years ago.
The text was updated successfully, but these errors were encountered: