8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d8ee1 commit b8f1f18Copy full SHA for b8f1f18
share/chruby/chruby.sh
@@ -71,7 +71,7 @@ function chruby()
71
fi
72
done
73
74
- echo "Unknown Ruby: $1"
+ echo "Unknown Ruby: $1" >&2
75
return 1
76
;;
77
esac
test/chruby_test.sh
@@ -22,4 +22,11 @@ function test_chruby_system()
22
assertNull "did not reset the Ruby" "$RUBY"
23
}
24
25
+function test_chruby_unknown()
26
+{
27
+ chruby "foo" 2>/dev/null
28
+
29
+ assertEquals "did not return 1" $? 1
30
+}
31
32
SHUNIT_PARENT=$0 . /usr/share/shunit2/shunit2
0 commit comments