Commit ffcb7ed6 by Mislav Marohnić

Add test that ensures duplicate Ruby definitions don't get displayed

parent 54301c16
...@@ -94,3 +94,18 @@ jruby-9000" ...@@ -94,3 +94,18 @@ jruby-9000"
run ruby-build --definitions run ruby-build --definitions
assert_success "$expected" assert_success "$expected"
} }
@test "removing duplicate Ruby versions" {
export RUBY_BUILD_ROOT="$TMP"
export RUBY_BUILD_DEFINITIONS="${RUBY_BUILD_ROOT}/share/ruby-build"
mkdir -p "$RUBY_BUILD_DEFINITIONS"
touch "${RUBY_BUILD_DEFINITIONS}/1.9.3"
touch "${RUBY_BUILD_DEFINITIONS}/2.2.0"
run ruby-build --definitions
assert_success
assert_output <<OUT
1.9.3
2.2.0
OUT
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment