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
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
For class with argumented initializer, shoegaze doesn't mock class initialize function, then instantiation like FakeClass.proxy.new(args) fails with following error:
classTestClassdefinitialize(dummy)endendclassFakeTest < Shoegaze::Mockmock"TestClass"implement_instance_method:initializedodefaultdodatasourcedo |*arg|
"instance method implementation doesn't help, \ because `missing_method` wasn't hit at all."endendendenddescribeFakeTestdosubject{FakeTest.proxy.new("dummy")}it"works with customized initializer in shoegaze"doexpect(subject).tobe_kind_ofShoegaze::Proxy::Templateendend
The text was updated successfully, but these errors were encountered:
What is problem I'd like to solve?
For class with argumented initializer, shoegaze doesn't mock class
initialize
function, then instantiation likeFakeClass.proxy.new(args)
fails with following error:How to reproduce
The text was updated successfully, but these errors were encountered: