compiled_license/spec/compiled_license_spec.cr
Isaac Sloan 09fdd517bd specs
2018-02-20 00:07:01 -07:00

22 lines
553 B
Crystal

require "./spec_helper"
describe CompiledLicense do
licenses = {{ run("../src/compiled_license/licenses.cr").stringify }}
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