On Mon, Mar 17, 2008 at 2:50 PM, nzook <[EMAIL PROTECTED]> wrote:
>
> '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
Yes!
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users