test/test_demandbase.rb in demandbase-0.1.3 vs test/test_demandbase.rb in demandbase-0.1.4
- old
+ new
@@ -39,6 +39,27 @@
should "throw an exception when the service is down" do
end
+ should "know a school" do
+ schools = [
+ 'strath.ac.uk',
+ 'stanford.edu',
+ 'walnutcreeksd.org'
+ ]
+
+ not_schools = [
+ 'lanl.gov',
+ 'microsoft.com'
+ ]
+
+ schools.each do |school|
+ assert_equal true, Demandbase::is_academic?(school)
+ end
+
+ not_schools.each do |school|
+ assert_equal false, Demandbase::is_academic?(school)
+ end
+ end
+
end