mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-01 02:03:18 -05:00
Remove *actual groovy binary* from test resources. Rework dummies and update specs accordingly.
This commit is contained in:
@@ -8,24 +8,24 @@ Feature: Use and Default Candidate
|
||||
Then I see "Usage: gvm <command> <candidate> [version]"
|
||||
|
||||
Scenario: Use a candidate version that is installed
|
||||
Given the candidate "groovy" version "2.0.5" is already installed and default
|
||||
And the candidate "groovy" version "1.8.8" is already installed but not default
|
||||
When I enter "gvm use groovy 1.8.8"
|
||||
Then I see "Using groovy version 1.8.8 in this shell."
|
||||
Then the candidate "groovy" version "1.8.8" should be in use
|
||||
And the candidate "groovy" version "2.0.5" should be the default
|
||||
Given the candidate "grails" version "2.1.0" is already installed and default
|
||||
And the candidate "grails" version "1.3.9" is already installed but not default
|
||||
When I enter "gvm use grails 1.3.9"
|
||||
Then I see "Using grails version 1.3.9 in this shell."
|
||||
Then the candidate "grails" version "1.3.9" should be in use
|
||||
And the candidate "grails" version "2.1.0" should be the default
|
||||
|
||||
Scenario: Use a candidate version that is not installed
|
||||
When I enter "gvm use groovy 1.8.8" and answer "Y"
|
||||
Then I see "Using groovy version 1.8.8 in this shell."
|
||||
And the candidate "groovy" version "1.8.8" should be in use
|
||||
When I enter "gvm use grails 1.3.9" and answer "Y"
|
||||
Then I see "Using grails version 1.3.9 in this shell."
|
||||
And the candidate "grails" version "1.3.9" should be in use
|
||||
|
||||
Scenario: Use a candidate version that is automatically installed
|
||||
And I have configured "gvm_auto_answer" to "true"
|
||||
When I enter "gvm use groovy 1.8.8"
|
||||
Then I see "Stop! groovy 1.8.8 is not installed."
|
||||
Then I see "Using groovy version 1.8.8 in this shell."
|
||||
And the candidate "groovy" version "1.8.8" should be in use
|
||||
When I enter "gvm use grails 1.3.9"
|
||||
Then I see "Stop! grails 1.3.9 is not installed."
|
||||
Then I see "Using grails version 1.3.9 in this shell."
|
||||
And the candidate "grails" version "1.3.9" should be in use
|
||||
|
||||
Scenario: Use a candidate version that does not exist
|
||||
When I enter "gvm use groovy 1.9.9"
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.vertx.groovy.core.Vertx
|
||||
|
||||
class VertxUtils {
|
||||
|
||||
final static groovy = ['2.0.5', '1.8.8']
|
||||
final static groovy = ['2.0.5']
|
||||
final static grails = ['1.3.6','1.3.9','2.1.0']
|
||||
final static candidates = [groovy:groovy,grails:grails]
|
||||
final static defaults = [groovy:'2.0.5',grails:'2.1.0']
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user