diff options
author | dakkar <dakkar@thenautilus.net> | 2018-01-02 17:18:39 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-01-02 17:18:39 +0000 |
commit | cfe34795b1d9db7ada11d18c4f76444060cdf60d (patch) | |
tree | 98e5d5c5bd6731d0ae656a33374d5d211ae2abe0 /t | |
parent | test for musicfile (diff) | |
download | Ultramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.tar.gz Ultramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.tar.bz2 Ultramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.zip |
better structure, and test, for License
Diffstat (limited to 't')
-rw-r--r-- | t/tests/model/license.t | 12 |
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; + |