-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d53d69e
commit 53c3dbb
Showing
15 changed files
with
156 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "../support/bats-support/load" | ||
load "../support/bats-assert/load" | ||
|
||
setup() { | ||
source /tmp/.env-* | ||
export PATH="/home/semaphore/.rbenv/bin:$PATH" | ||
eval "$(rbenv init -)" | ||
set -u | ||
source ~/.toolbox/toolbox | ||
} | ||
|
||
# Ruby | ||
@test "change ruby to 2.7.8" { | ||
|
||
run sem-version ruby 2.7.8 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 2.7.8" | ||
} | ||
|
||
@test "change ruby to 3.0.6" { | ||
|
||
run sem-version ruby 3.0.6 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.0.6" | ||
} | ||
|
||
@test "change ruby to 3.1.4" { | ||
|
||
run sem-version ruby 3.1.4 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.1.4" | ||
} | ||
|
||
@test "change ruby to 3.2.2" { | ||
|
||
run sem-version ruby 3.2.2 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.2.2" | ||
} | ||
|
||
@test "ruby minor versions test" { | ||
|
||
run sem-version ruby 2.7 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 2.7.8" | ||
|
||
run sem-version ruby 3.0 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.0.6" | ||
|
||
run sem-version ruby 3.1 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.1.4" | ||
|
||
run sem-version ruby 3.2 | ||
assert_success | ||
run ruby --version | ||
assert_line --partial "ruby 3.2.2" | ||
} | ||
|
||
@test "change ruby to 4.0.1" { | ||
|
||
run sem-version ruby 4.0.1 | ||
assert_failure | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters