You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rr's satisfy wildcard matchers conflicts with rspec2's one
In order to use rr's satisfy, you can just add a method in RR::Adapters::RRMethods :
module RR::Adapters::RRMethods
def rrsatisfy(&block)
RR::WildcardMatchers::Satisfy.new(block)
end
end
You can now use
mock(object).foobar(rrsatisfy {|arg| arg.length == 2})
object.foobar("xy")
The text was updated successfully, but these errors were encountered:
rr's satisfy wildcard matchers conflicts with rspec2's one
In order to use rr's satisfy, you can just add a method in RR::Adapters::RRMethods :
module RR::Adapters::RRMethods
def rrsatisfy(&block)
RR::WildcardMatchers::Satisfy.new(block)
end
end
You can now use
mock(object).foobar(rrsatisfy {|arg| arg.length == 2})
object.foobar("xy")
The text was updated successfully, but these errors were encountered: