Permalink
Browse files

Add optional passing Specs in Quickfix for RSpec 1.

  • Loading branch information...
1 parent 9d0d5da commit 401fe4d8ec84cddad27cc56c6c3658fe94acf655 @duskhacker committed Sep 4, 2011
Showing with 6 additions and 2 deletions.
  1. +0 −2 README.md
  2. +6 −0 plugin/sweet_vim_rspec1_formatter.rb
View
@@ -62,8 +62,6 @@ or in your .vimrc
## TODO
* An output window that shows rspec executing.
-* 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
@@ -26,6 +26,12 @@ def dump_failure counter, failure
data << "\n-+-\n" * 2
output.puts data
end
+
+ def example_passed(example)
+ if ENV['SWEET_VIM_RSPEC_SHOW_PASSING'] == 'true'
+ output.puts "[PASS] #{example.description}\n"
+ end
+ end
def example_pending(example, message, deprecated_pending_location=nil)
data = ""

0 comments on commit 401fe4d

Please sign in to comment.