A matcher for use with Jeremy McAnally's matchy
that integrates with RR.
gem install rr-matchy
Somewhere in your test_helper.rb
:
require 'rr-matchy'
class Test::Unit::TestCase
include RR::Adapters::TestUnit
extend RRMatchy
end
Now you can say:
this.should have_received(:that)
and
this.should_not have_received(:that)
Probably should submit a pull request to btakita eventually, but we'll see how this works first.
Copyright (c) 2010 Elliot Winkler. See LICENSE for details.