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
5013fa8b
Commit
5013fa8b
authored
Jun 03, 2015
by
Tester
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use head instead of function w/ sed
parent
1f4843da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
test/rbenv.bats
+2
-7
No files found.
test/rbenv.bats
View file @
5013fa8b
...
...
@@ -12,11 +12,6 @@ stub_ruby_build() {
stub ruby-build "--lib : $BATS_TEST_DIRNAME/../bin/ruby-build --lib" "$@"
}
extract_usage_from() {
local program="$BATS_TEST_DIRNAME/../bin/$1"
sed -ne '/^#/!q;s/.//;s/.//;1,4d;p' < "$program"
}
@test "install proper" {
stub_ruby_build 'echo ruby-build "$@"'
...
...
@@ -180,7 +175,7 @@ OUT
}
@test "rbenv-install has usage help preface" {
run
extract_usage_from rbenv-install
run
head "$(which rbenv-install)"
assert_output_contains 'Usage: rbenv install'
}
...
...
@@ -209,6 +204,6 @@ OUT
}
@test "rbenv-uninstall has usage help preface" {
run
extract_usage_from rbenv-uninstall
run
head "$(which rbenv-uninstall)"
assert_output_contains 'Usage: rbenv uninstall'
}
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