mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-22 01:24:13 -05:00
Merge pull request #158 from rlovtangen/issue144
Cucumber scenarios for issue #144 "Implement offline switch"
This commit is contained in:
19
src/test/cucumber/gvm/forced_offline.feature
Normal file
19
src/test/cucumber/gvm/forced_offline.feature
Normal file
@@ -0,0 +1,19 @@
|
||||
Feature: Forced Offline Mode
|
||||
|
||||
Background:
|
||||
Given the internet is reachable
|
||||
|
||||
# use command
|
||||
|
||||
Scenario: Use an installed candidate version in aeroplane mode while Online
|
||||
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 --offline"
|
||||
Then I see "AEROPLANE MODE ENABLED!"
|
||||
And I see "Using grails version 1.3.9 in this shell."
|
||||
|
||||
Scenario: Use an uninstalled candidate version in aeroplane mode while Online
|
||||
Given the candidate "grails" version "1.3.9" is already installed and default
|
||||
And the candidate "grails" version "2.1.0" is not installed
|
||||
When I enter "gvm use grails 2.1.0 --offline"
|
||||
Then I see "Stop! grails 2.1.0 is not available in aeroplane mode."
|
||||
Reference in New Issue
Block a user