Shouldn't should return true?

'cause it doesn’t…

This is an issue for nested custom matchers, ie:

module CRFT
class RFT
def initialize(args)
blah
end
def matches?(target)
“Yeah, baby!”
end
end
def r_f_t(args)
RFT.new(args)
end
end

module CRLT
class RLT
include CRFT
def initialize(args)
blag
end
def matches?(target)
target.should r_f_t(‘foo’, ‘bar’, ‘baz’) #Whoops! Matcher FAILS
end
end
def r_l_t(args)
RLT.new(args)
end
end


View this message in context:
http://www.nabble.com/Shouldn't-should-return-true--tp16100539p16100539.html
Sent from the rspec-users mailing list archive at Nabble.com.

On Mon, Mar 17, 2008 at 2:50 PM, nzook [email protected] wrote:

def matches?(target)
include CRFT

end
Yes!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs