From c76acdc81f7a73e2d114d2e629a55a1f78a5a3a0 Mon Sep 17 00:00:00 2001 From: Chris de Graaf Date: Tue, 22 Aug 2017 13:54:03 -0500 Subject: [PATCH] Update tests to match new default license --- test/tests.jl | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/tests.jl b/test/tests.jl index 5768da8..823b776 100644 --- a/test/tests.jl +++ b/test/tests.jl @@ -33,7 +33,7 @@ write(test_file, template_text) t = Template(; user=me) rm(t.temp_dir; recursive=true) @test t.user == me - @test t.license == nothing + @test t.license == "MIT" @test t.years == string(Dates.year(Dates.today())) @test t.authors == LibGit2.getconfig("user.name", "") @test t.dir == Pkg.dir() @@ -41,9 +41,13 @@ write(test_file, template_text) @test isempty(t.git_config) @test isempty(t.plugins) - t = Template(; user=me, license="MIT") + t = Template(; user=me, license=nothing) rm(t.temp_dir; recursive=true) - @test t.license == "MIT" + @test t.license == nothing + + t = Template(; user=me, license="MPL") + rm(t.temp_dir; recursive=true) + @test t.license == "MPL" t = Template(; user=me, years=2014) rm(t.temp_dir; recursive=true) @@ -319,7 +323,7 @@ end @testset "Package generation" begin t = Template(; user=me) generate(test_pkg, t) - @test !isfile(Pkg.dir(test_pkg, "LICENSE")) + @test isfile(Pkg.dir(test_pkg, "LICENSE")) @test isfile(Pkg.dir(test_pkg, "README.md")) @test isfile(Pkg.dir(test_pkg, "REQUIRE")) @test isfile(Pkg.dir(test_pkg, ".gitignore")) @@ -358,12 +362,12 @@ end t = Template(; user=me, - license="MIT", + license=nothing, git_config=git_config, plugins=[AppVeyor(), GitHubPages(), Coveralls(), CodeCov(), TravisCI()], ) generate(test_pkg, t) - @test isfile(Pkg.dir(test_pkg, "LICENSE")) + @test !isfile(Pkg.dir(test_pkg, "LICENSE")) @test isfile(Pkg.dir(test_pkg, ".travis.yml")) @test isfile(Pkg.dir(test_pkg, ".appveyor.yml")) @test isfile(Pkg.dir(test_pkg, ".codecov.yml"))