compiled_license/spec/compiled_license_spec.cr

23 lines
553 B
Crystal
Raw Normal View History

2018-02-20 03:46:14 +00:00
require "./spec_helper"
describe CompiledLicense do
2018-02-20 07:07:01 +00:00
licenses = {{ run("../src/compiled_license/licenses.cr").stringify }}
2018-02-20 03:46:14 +00:00
2018-02-20 07:07:01 +00:00
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
2018-02-20 03:46:14 +00:00
end
end