[DRE-commits] [ruby-rspec-instafail] 02/126: refactor to use class_eval
Hideki Yamane
henrich at moszumanska.debian.org
Sun Nov 15 19:14:56 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 5daafcbc4e83046b1c279136c815a71ced49ef8c
Author: grosser <grosser.michael at gmail.com>
Date: Sun Aug 15 15:58:06 2010 +0200
refactor to use class_eval
---
lib/rspec/instafail.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/rspec/instafail.rb b/lib/rspec/instafail.rb
index ed66353..aa8412c 100644
--- a/lib/rspec/instafail.rb
+++ b/lib/rspec/instafail.rb
@@ -9,7 +9,8 @@ module RSpec
RSpec::Core::Formatters::ProgressFormatter
end
- class Instafail < klass
+ klass = Class.new(klass)
+ klass.class_eval do
def example_failed(example, counter, failure)
output.puts
output.puts red("#{counter}: #{example_group.description} #{example.description}")
--
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