specs
This commit is contained in:
parent
5612dfa4df
commit
09fdd517bd
4 changed files with 30 additions and 5 deletions
|
@ -1,9 +1,22 @@
|
|||
require "./spec_helper"
|
||||
|
||||
describe CompiledLicense do
|
||||
# TODO: Write tests
|
||||
licenses = {{ run("../src/compiled_license/licenses.cr").stringify }}
|
||||
|
||||
it "works" do
|
||||
false.should eq(true)
|
||||
it "should return string" do
|
||||
(licenses.size > 20).should be_true
|
||||
end
|
||||
|
||||
it "should include license of current file" do
|
||||
licenses.should contain("Compiled_license")
|
||||
end
|
||||
|
||||
it "should contain name of author from license file" do
|
||||
licenses.should contain("Isaac Sloan")
|
||||
end
|
||||
|
||||
it "should contain more than one license" do
|
||||
delimiter = "\n\n"
|
||||
(licenses.split(delimiter).size > 1).should be_true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue