I have the following in a controller spec:
let(:project) { instance_double('Project', metric?: false) }
But I get this error when running the spec:
Project does not implement: metric?
Project does most definitely implement metric?. The weird thing is that I
have this exact same instance double specified in a different model spec
(including the "metric?: false" part), and it runs without any problems.
How can I resolve this?
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/bdfedfc0-24b5-479a-ae15-f476f79da5e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.