[rspec-users] Hiding the passes

Oliver Saunders lists at ruby-forum.com
Thu May 8 14:40:51 EDT 2008


I should explain I'm running the tests from textmate.
So for those interested in doing the same I changed the "Run Examples" 
command in the RSpec bundle to:

#!/usr/bin/env ruby
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
require 'spec/runner/formatter/html_formatter'

module Spec::Runner::Formatter
    class TextMateFormatter < HtmlFormatter
     # hide passes
        def example_passed(*args); end
    end
end

Spec::Mate::Runner.new.run_file STDOUT
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list