Skip to content
Browse files

Make showing RSPEC 2 passing specs optional; Updating documentation.

  • Loading branch information...
1 parent 98b1bec commit 35c8447526dea04ff54587fa5c343c206ef6d4f7 @duskhacker committed Sep 4, 2011
Showing with 17 additions and 5 deletions.
  1. +14 −2 README.md
  2. +3 −3 plugin/sweet_vim_rspec2_formatter.rb
View
16 README.md
@@ -45,12 +45,24 @@ Note: The `<M-D-r>` mapping requires `:set macmeta`
To navigate the Quickfix buffer output efficiently, you should be
familiar with VIM folding. Take a look a `:h usr_28` for more
-infomation.
+information.
+
+## Passing Specs
+
+Passing Specs can optionally be output to the Quickfix list. Setting the
+`SWEET_VIM_RSPEC_SHOW_PASSING` to `true` will enable this behavior. You can do this
+in your shell:
+
+ export SWEET_VIM_RSPEC_SHOW_PASSING="true" # for bash & zsh
+
+or in your .vimrc
+
+ let $SWEET_VIM_RSPEC_SHOW_PASSING="true"
## TODO
* An output window that shows rspec executing.
-* Right now, it only lists failing and pending specs, it should give a
+* Right now in RSPEC 1, it only lists failing and pending specs, it should give a
full list of all specs run and mark/give details to failing/pending specs.
## Contributing
View
6 plugin/sweet_vim_rspec2_formatter.rb
@@ -34,9 +34,9 @@ def example_pending(example)
end
def example_passed(example)
- data = ""
- data << "[PASS] #{example.full_description}\n"
- output.puts data
+ if ENV['SWEET_VIM_RSPEC_SHOW_PASSING'] == 'true'
+ output.puts "[PASS] #{example.full_description}\n"
+ end
end
def dump_failures *args; end

0 comments on commit 35c8447

Please sign in to comment.
Something went wrong with that request. Please try again.