feat(test): Adopt BeforeAll and AfterAll

This commit is contained in:
Raphael Reitzig 2023-06-27 22:53:01 +02:00 committed by Raphael
parent 9bc7a83802
commit 146dc05e37
5 changed files with 8 additions and 20 deletions

View file

@ -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