''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.
On Mon, Mar 17, 2008 at 2:50 PM, nzook <Nathan.Zook at amd.com> 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 > endYes!
Seemingly Similar Threads
- Variable as color in a barplot
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
- v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
- [PATCH] vhost: fix initialization for vq->is_le
- [PATCH] vhost: fix initialization for vq->is_le