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?