From: nobu.nokada@... Date: 2002-08-11T14:41:58+09:00 Subject: Re: Testing for mod_ruby (was "how do i mock the presence / absence of a constant w/out getting warnings?") Hi, At Sun, 11 Aug 2002 13:04:29 +0900, Patrick May wrote: > Thanks, this worked for me. Unfortunately, after I did > > Object.const_set( :MOD_RUBY, true ) > > in the context of the test, the check in my code (different context): > > if (defined? MOD_RUBY) > > continued to be false. If I checked in the body of the test method, > this check returned true. Is this the expected behaviour? What are the contexts? -- Nobu Nakada