summaryrefslogtreecommitdiff
path: root/t/tests/model/license.t
diff options
context:
space:
mode:
Diffstat (limited to 't/tests/model/license.t')
-rw-r--r--t/tests/model/license.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/tests/model/license.t b/t/tests/model/license.t
new file mode 100644
index 0000000..d7e7993
--- /dev/null
+++ b/t/tests/model/license.t
@@ -0,0 +1,12 @@
+use v6.d.PREVIEW;
+use Test;
+use Ultramarine::Model::License;
+
+my Ultramarine::Model::License $l .= new;
+
+ok($l.is-valid,'the license should always be valid');
+ok($l.email,'the license should have an email address');
+ok($l.expires-at > now, 'the license should never expire');
+
+done-testing;
+