On 1 Oct 2007, at 22:07, Gary Wright wrote: > > On Oct 1, 2007, at 11:50 AM, Gabriel Dragffy wrote: >> Oh thank you so much, you spotted that one a million miles off, I >> missed out the http://. Have corrected this but now getting errors >> like: >> ./test_website.rb:13:in `test': uninitialized constant >> TestWebsite::NET (NameError) >> MMM something to keep my mind ticking over. > > You can force constants to be evaluated from the > top-level rather than from the current lexical scope by > prefixing the constant with '::' > > class TestSuite > ok = ::Net::HTTPOK > end > > Gary Wright > Thank you, Gary!