Created
May 24, 2011 17:23
-
-
Save diabolo/989180 to your computer and use it in GitHub Desktop.
installing rspec with rvm
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
[andy@mini-un ~/Sites] (master) | |
➥ rvm use --create 1.9.2@test_rspec | |
Using /Users/andy/.rvm/gems/ruby-1.9.2-p180 with gemset test_rspec | |
[andy@mini-un ~/Sites] (master) ❷@test_rspec | |
➥ gem install rspec | |
Fetching: rspec-core-2.6.3.gem (100%) | |
Fetching: diff-lcs-1.1.2.gem (100%) | |
Fetching: rspec-expectations-2.6.0.gem (100%) | |
Fetching: rspec-mocks-2.6.0.gem (100%) | |
Fetching: rspec-2.6.0.gem (100%) | |
Successfully installed rspec-core-2.6.3 | |
Successfully installed diff-lcs-1.1.2 | |
Successfully installed rspec-expectations-2.6.0 | |
Successfully installed rspec-mocks-2.6.0 | |
Successfully installed rspec-2.6.0 | |
5 gems installed | |
[andy@mini-un ~/Sites] (master) ❷@test_rspec | |
➥ rspec --help | |
Usage: rspec [options] [files or directories] | |
-b, --backtrace Enable full backtrace | |
-c, --[no-]color, --[no-]colour Enable color in the output | |
-d, --debugger Enable debugging | |
-e, --example STRING Run examples whose full nested names include STRING | |
-f, --format FORMATTER Choose a formatter | |
[p]rogress (default - dots) | |
[d]ocumentation (group and example names) | |
[h]tml | |
[t]extmate | |
custom formatter class name | |
-o, --out FILE Write output to a file instead of STDOUT. This option applies | |
to the previously specified --format, or the default format if | |
no format is specified. | |
-I DIRECTORY specify $LOAD_PATH directory (may be used more than once) | |
-l, --line_number LINE Specify the line number of a single example to run | |
-O, --options PATH Specify the path to an options file | |
-p, --profile Enable profiling of examples with output of the top 10 slowest examples | |
-P, --pattern PATTERN Load files those matching this pattern. Default is "spec/**/*_spec.rb" | |
-r, --require PATH Require a file | |
-v, --version Show version | |
-X, --drb Run examples via DRb | |
--configure COMMAND Generate configuration files | |
--drb-port [PORT] Port to connect to on the DRb server | |
--fail-fast Abort the run on first failure. | |
-t, --tag TAG[:VALUE] Run examples with the specified tag | |
To exclude examples, add ~ before the tag (e.g. ~slow) | |
(TAG is always converted to a symbol) | |
--tty Used internally by rspec when sending commands to other processes | |
-h, --help You're looking at it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment