diff --git a/test/libraries/InstallDeps/git-deps-url-new.hxml b/test/libraries/InstallDeps/git-deps-url-new.hxml index d5ab7f93..c2d6b392 100644 --- a/test/libraries/InstallDeps/git-deps-url-new.hxml +++ b/test/libraries/InstallDeps/git-deps-url-new.hxml @@ -1 +1 @@ --lib hx.signal:git:https://github.com/boozook/hx.signal.git \ No newline at end of file +-lib flixel:git:https://github.com/geokureli/flixel.git#4.5.0 \ No newline at end of file diff --git a/test/libraries/InstallDeps/git-deps-url-old.hxml b/test/libraries/InstallDeps/git-deps-url-old.hxml index c9617828..bff4f6ff 100644 --- a/test/libraries/InstallDeps/git-deps-url-old.hxml +++ b/test/libraries/InstallDeps/git-deps-url-old.hxml @@ -1 +1 @@ --lib hx.signal:git:https://github.com/fzzr-/hx.signal.git \ No newline at end of file +-lib flixel:git:https://github.com/HaxeFlixel/flixel.git#4.5.0 \ No newline at end of file diff --git a/test/tests/TestInstaller.hx b/test/tests/TestInstaller.hx index 06739860..48a39cbb 100644 --- a/test/tests/TestInstaller.hx +++ b/test/tests/TestInstaller.hx @@ -1,5 +1,6 @@ package tests; +import haxelib.VersionData.VcsID; import sys.FileSystem; import sys.io.File; import haxe.io.Path; @@ -106,7 +107,16 @@ class TestInstaller extends TestBase { } public function testInstallUrlChanges() { + installer.installFromHxml("git-deps-url-old.hxml"); + assertTrue(scope.isLibraryInstalled(ProjectName.ofString("flixel"))); + assertEquals(scope.repository.getVcsData(ProjectName.ofString("flixel"), VcsID.Git).url, "https://github.com/HaxeFlixel/flixel.git"); + + + installer.installFromHxml("git-deps-url-new.hxml"); + + assertTrue(scope.isLibraryInstalled(ProjectName.ofString("flixel"))); + assertEquals(scope.repository.getVcsData(ProjectName.ofString("flixel"), VcsID.Git).url, "https://github.com/geokureli/flixel.git"); } function getLibraryName():String {