Displaying 1 result from an estimated 1 matches for "r_f_t".
2008 Mar 17
1
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(ar...