]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blob - test/website_test.rb
Initial commit.
[dead/whatever-dl.git] / test / website_test.rb
1 # Tests common to all websites.
2 require 'test/unit'
3
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|
7 require r
8 end
9
10 class WebsiteTest < Test::Unit::TestCase
11
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'))
17 end
18 end
19
20 end