List Info

Thread: Re: defined $TESTING




Re: defined $TESTING
user name
2007-06-12 09:28:56
On 6/9/07, Piers Cawley <pdcawleybofh.org.uk> wrote:
> On 09/06/07, Matijs van Zuijlen
<Matijs.van.Zuijlenxs4all.nl> wrote:
> > Hi,
> >
> > The copy of memcache.rb in typo's trunk has the
line
> >
> >   $TESTING = defined? $TESTING
> >
> > at the top. This means that after including
memcache, $TESTING is
> > definitely defined. If we're testing, it's true,
if not, it's defined and
> > false.
> >
> > In the typo code elsewhere, the checks for testing
mode only check whether
> > $TESTING is defined, not what its actual value
is.
> >
> > This means typo always runs in testing mode!
> >
> > I believe this is the main reason threaded
trackback pings were not
> > working properly.
>
> Oh dear ghod! Thanks for the spot. I shall fix it
immediately.

Thanks indeed.  For those of us running the gem, just
comment out or
delete the $TESTING = defined? $TESTING line and watch your
Typo
instance go Vroom 

-Chris

-- 
 Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail:
 cpattigmail.com
"The greatest dangers to liberty lurk in insidious
encroachment by men of
  zeal,well-meaning but without understanding."--
Justice Louis O. Brandeis
 (Olmstead vs. United States)
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

defined $TESTING
user name
2007-06-09 02:18:04
Hi,

The copy of memcache.rb in typo's trunk has the line

  $TESTING = defined? $TESTING

at the top. This means that after including memcache,
$TESTING is
definitely defined. If we're testing, it's true, if not,
it's defined and
false.

In the typo code elsewhere, the checks for testing mode only
check whether
$TESTING is defined, not what its actual value is.

This means typo always runs in testing mode!

I believe this is the main reason threaded trackback pings
were not
working properly.

-- 
Matijs van Zuijlen					http://www.matijs.net/

_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
Re: defined $TESTING
user name
2007-06-09 02:27:39
On 09/06/07, Matijs van Zuijlen <Matijs.van.Zuijlenxs4all.nl> wrote:
> Hi,
>
> The copy of memcache.rb in typo's trunk has the line
>
>   $TESTING = defined? $TESTING
>
> at the top. This means that after including memcache,
$TESTING is
> definitely defined. If we're testing, it's true, if
not, it's defined and
> false.
>
> In the typo code elsewhere, the checks for testing mode
only check whether
> $TESTING is defined, not what its actual value is.
>
> This means typo always runs in testing mode!
>
> I believe this is the main reason threaded trackback
pings were not
> working properly.

Oh dear ghod! Thanks for the spot. I shall fix it
immediately.
_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )