[DRE-commits] [ruby-rspec-instafail] 97/108: Make a minor simplification to the RSpec 3 formatter.

Hideki Yamane henrich at moszumanska.debian.org
Sun Nov 15 18:36:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-rspec-instafail.

commit ac245bc02a6e894d48cfe3a4e4c4983aad6fde5d
Author: Adam Prescott <adam at aprescott.com>
Date:   Tue Apr 28 16:02:09 2015 -0400

    Make a minor simplification to the RSpec 3 formatter.
    
    If you use the `output` method, you don't need to manually set up the
    `@output` instance variable, since `super` takes care of that.
---
 lib/rspec/instafail/rspec_3.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/rspec/instafail/rspec_3.rb b/lib/rspec/instafail/rspec_3.rb
index 93321ee..d062532 100755
--- a/lib/rspec/instafail/rspec_3.rb
+++ b/lib/rspec/instafail/rspec_3.rb
@@ -6,13 +6,12 @@ module RSpec
 
     def initialize(output)
       super
-      @output = output
       @failed_examples = []
     end
 
     def example_failed(failure)
       @failed_examples << failure.example
-      @output.puts failure.fully_formatted(@failed_examples.size)
+      output.puts failure.fully_formatted(@failed_examples.size)
     end
   end
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-instafail.git



More information about the Pkg-ruby-extras-commits mailing list