New `have_received` matcher needs a description
Created by: myronmarston
describe "have_received one-liner" do
subject(:dbl) { double.as_null_object }
before { dbl.foo }
it { should have_received(:foo) }
end
Produces:
When you call a matcher in an example without a String, like this:
specify { object.should matcher }
or this:
it { should matcher }
RSpec expects the matcher to have a #description method. You should either
add a String to the example this matcher is being used in, or give it a
description method. Then you won't have to suffer this lengthy warning again.