mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 21:27:11 -07:00
feat(test): Adopt BeforeAll
and AfterAll
This commit is contained in:
parent
9bc7a83802
commit
146dc05e37
5 changed files with 8 additions and 20 deletions
|
@ -1,14 +1,6 @@
|
|||
require 'fileutils'
|
||||
require 'tempfile'
|
||||
|
||||
$index_updated = false # TODO: Hack since Cucumber doesn't have Feature-level hooks
|
||||
Given(/^SDKMAN! candidate list is up to date$/) do
|
||||
unless $index_updated
|
||||
run_bash_command('sdk update')
|
||||
$index_updated = true
|
||||
end
|
||||
end
|
||||
|
||||
Given(/^candidate (\w+) is installed at version (\d+(?:\.\d+)*)$/) do |candidate, version|
|
||||
# TODO: Can we mock-install instead?
|
||||
# Something like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue