'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%27t-should-return-true--tp16100539p16100539.html
Sent from the rspec-users mailing list archive at Nabble.com.

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to