[rspec-users] Warning (but not failing) if a method wasn't called?
jko170 at gmail.com
Wed Sep 7 09:34:04 EDT 2011
On Wed, Sep 7, 2011 at 6:08 AM, John Feminella <johnf at bitsbuilder.com>wrote:
> Is there a way to warn but not fail if a particular method wasn't
> called? That is, I'm looking for something that's halfway between
> obj.stub(...) and obj.should_receive(...). I'm trying to do something
> like this:
> shared_context "with a stubbed geocoder" do
> before(:each) do
> @geocoding_client = Geocoding::FakeGeoClient.new
> # generate warning if the spec doesn't cause a hit to Geocoding.client
> ~ jf
> John Feminella
> Principal Consultant, BitsBuilder
> LI: http://www.linkedin.com/in/johnxf
> SO: http://stackoverflow.com/users/75170/
> rspec-users mailing list
> rspec-users at rubyforge.org
Why would you want a warn? I can't get my head around this.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users