File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Release {
5151 . OUTPUTS
5252 The download URL.
5353 #>
54- [uri ] GetUrl () {
54+ [uri ] Url () {
5555 return " https://archive.apache.org/dist/ant/binaries/apache-ant-$ ( $this.Version ) -bin.zip"
5656 }
5757
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class Setup {
4545 #>
4646 [string ] Download([bool ] $OptionalTasks ) {
4747 $file = New-TemporaryFile
48- Invoke-WebRequest $this.Release.GetUrl () - OutFile $file
48+ Invoke-WebRequest $this.Release.Url () - OutFile $file
4949
5050 $directory = Join-Path ([Path ]::GetTempPath()) (New-Guid )
5151 Expand-Archive $file $directory - Force
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ Describe "Release" {
2727 }
2828 }
2929
30- Context " GetUrl " {
30+ Context " Url " {
3131 It " should return the URL of the Ant archive" {
32- $existingRelease.GetUrl () | Should - BeExactly " https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.zip"
33- $nonExistingRelease.GetUrl () | Should - BeExactly " https://archive.apache.org/dist/ant/binaries/apache-ant-666.6.6-bin.zip"
32+ $existingRelease.Url () | Should - BeExactly " https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.15-bin.zip"
33+ $nonExistingRelease.Url () | Should - BeExactly " https://archive.apache.org/dist/ant/binaries/apache-ant-666.6.6-bin.zip"
3434 }
3535 }
3636
You can’t perform that action at this time.
0 commit comments