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
classFoobarincludeInject[foo: 'bar']defdo_somethingfoo.do_something# ....endend# would be tested like thisclassFoobarTest < Minitest::Testdeftest_it_calls_do_something_of_foomock=Minitest::Mock.newmock.expect:do_somethingFoobar.new(foo: mock).do_somethingassert_mockedmockendend
This was working fine before 0.5.0. Now, it gets the error unmocked method :nil?, expected one of [:do_something] due to 193ed48#diff-f6dd1c9acc3de0d2ccbed1741aa38257, thus rendering mocking non straightforward
The text was updated successfully, but these errors were encountered:
This was working fine before 0.5.0. Now, it gets the error
unmocked method :nil?, expected one of [:do_something]
due to 193ed48#diff-f6dd1c9acc3de0d2ccbed1741aa38257, thus rendering mocking non straightforwardThe text was updated successfully, but these errors were encountered: