Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
a1023090
Commit
a1023090
authored
Jun 02, 2015
by
Tester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
stub rbenv-help for rbenv-install and rbenv-uninstall help messages
parent
699f0cc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
test/rbenv.bats
+24
-0
No files found.
test/rbenv.bats
View file @
a1023090
...
...
@@ -149,39 +149,63 @@ OUT
@test "not enough arguments for rbenv-install" {
stub_ruby_build
stub rbenv-help 'echo "Usage: rbenv install"'
run rbenv-install
assert_failure
assert_output_contains 'Usage: rbenv install'
unstub rbenv-help
}
@test "too many arguments for rbenv-install" {
stub_ruby_build
stub rbenv-help 'echo "Usage: rbenv install"'
run rbenv-install 2.1.1 2.1.2
assert_failure
assert_output_contains 'Usage: rbenv install'
unstub rbenv-help
}
@test "show help for rbenv-install" {
stub_ruby_build
stub rbenv-help 'echo "Usage: rbenv install"'
run rbenv-install -h
assert_success
assert_output_contains 'Usage: rbenv install'
unstub rbenv-help
}
@test "not enough arguments rbenv-uninstall" {
stub rbenv-help 'echo "Usage: rbenv uninstall"'
run rbenv-uninstall
assert_failure
assert_output_contains 'Usage: rbenv uninstall'
unstub rbenv-help
}
@test "too many arguments for rbenv-uninstall" {
stub rbenv-help 'echo "Usage: rbenv uninstall"'
run rbenv-uninstall 2.1.1 2.1.2
assert_failure
assert_output_contains 'Usage: rbenv uninstall'
unstub rbenv-help
}
@test "show help for rbenv-uninstall" {
stub rbenv-help 'echo "Usage: rbenv uninstall"'
run rbenv-uninstall -h
assert_success
assert_output_contains 'Usage: rbenv uninstall'
unstub rbenv-help
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment