This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake spec | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec --color | |
bash: -S: invalid option | |
Usage: bash [GNU long option] [option] ... | |
bash [GNU long option] [option] script-file ... | |
GNU long options: | |
--debug | |
--debugger | |
--dump-po-strings | |
--dump-strings | |
--help | |
--init-file | |
--login | |
--noediting | |
--noprofile | |
--norc | |
--posix | |
--protected | |
--rcfile | |
--restricted | |
--verbose | |
--version | |
Shell options: | |
-irsD or -c command or -O shopt_option (invocation only) | |
-abefhkmnptuvxBCHP or -o option | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec --color failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
[ -n "$RBENV_DEBUG" ] && set -x | |
program="${0##*/}" | |
if [ "$program" = "ruby" ]; then | |
for arg; do | |
case "$arg" in | |
-e* | -- ) break ;; | |
*/* ) | |
if [ -f "$arg" ]; then | |
export RBENV_DIR="${arg%/*}" | |
break | |
fi | |
;; | |
esac | |
done | |
fi | |
export RBENV_ROOT="/usr/local/var/rbenv" | |
exec "/usr/local/Cellar/rbenv/0.4.0/libexec/rbenv" exec "$program" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'puppetlabs_spec_helper/rake_tasks' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--format | |
s | |
--colour | |
--loadby | |
mtime | |
--backtrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pathname' | |
dir = Pathname.new(__FILE__).parent | |
$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') | |
require 'mocha' | |
require 'puppet' | |
gem 'rspec', '=1.2.9' | |
require 'spec/autorun' | |
require 'rubygems' | |
require 'puppetlabs_spec_helper/module_spec_helper' | |
Spec::Runner.configure do |config| | |
config.mock_with :mocha | |
end | |
# We need this because the RAL uses 'should' as a method. This | |
# allows us the same behaviour but with a different method name. | |
class Object | |
alias :must :should | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/bin/sh: -1: invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--rpm-requires
--restricted
--verbose
--version
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option