1 # Tests common to all websites.
4 # All of the website classes are located in one
5 # directory, so we can 'require' them automatically.
6 Dir
.glob('src/websites/*.rb').each
do |r
|
10 class WebsiteTest
< Test
::Unit::TestCase
12 def test_doesnt_own_misc_urls
13 Website
.subclasses
.each
do |w
|
14 assert(!w
.owns_url
?('6807'))
15 assert(!w
.owns_url
?('www'))
16 assert(!w
.owns_url
?('http'))