Skip to content

Commit

Permalink
Fixed the chruby_auto tests that were failing on GitHub Action's macOS.
Browse files Browse the repository at this point in the history
* GitHub Action's macOS image provides a different version of shunit2.
* shnit2 runs tearDown an additional time after all test_* functions
  have been called.
  kward/shunit2#112
  • Loading branch information
postmodern committed Sep 12, 2021
1 parent 955b51e commit f0805f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/chruby_auto_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
. ./test/helper.sh

test_dir="$test_fixtures_dir/ruby_versions"
old_pwd="$PWD"

function oneTimeSetUp()
{
Expand Down Expand Up @@ -165,7 +166,7 @@ function test_chruby_auto_ruby_version_containing_options()

function tearDown()
{
cd "$PWD"
cd "$old_pwd"
}

function oneTimeTearDown()
Expand Down

0 comments on commit f0805f6

Please sign in to comment.