test/test_licensee_license.rb in licensee-4.1.2 vs test/test_licensee_license.rb in licensee-4.2.0
- old
+ new
@@ -33,6 +33,15 @@
end
should "parse the license parts" do
assert_equal 3, @license.send(:parts).size
end
+
+ should "build the license URL" do
+ assert_equal "http://choosealicense.com/licenses/mit/", @license.url
+ end
+
+ should "return all licenses" do
+ assert_equal Array, Licensee::License.all.class
+ assert Licensee::License.all.size > 3
+ end
end