Skip to content

Commit

Permalink
Accommodate platform in selfupdate stub.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Aug 6, 2022
1 parent 8adeaf9 commit f26c250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/groovy/sdkman/steps/stub_steps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ And(~'^the default "([^"]*)" version is "([^"]*)"$') { String candidate, String
}

And(~'^an available selfupdate$') { ->
primeEndpointWithString("/selfupdate/stable", 'echo "Successfully upgraded SDKMAN."')
primeEndpointWithString("/selfupdate/beta", 'echo "Successfully upgraded SDKMAN."')
primeEndpointWithString("/selfupdate/stable/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."')
primeEndpointWithString("/selfupdate/beta/${UnixUtils.inferPlatform()}", 'echo "Successfully upgraded SDKMAN."')
}

And(~'^the candidate "([^"]*)" version "([^"]*)" is available for download$') { String candidate, String version ->
Expand Down

0 comments on commit f26c250

Please sign in to comment.