Permalink
Browse files

Merge pull request #34 from mgiambalvo/master

RSpec base formatter
  • Loading branch information...
2 parents 545ddea + c53739f commit 27c44ce01dd0fc0666a929fc034937b18b17caf0 @nicksieger nicksieger committed Aug 29, 2011
Showing with 13 additions and 0 deletions.
  1. +6 −0 lib/ci/reporter/rake/rspec.rb
  2. +7 −0 lib/ci/reporter/rspec.rb
View
6 lib/ci/reporter/rake/rspec.rb
@@ -21,5 +21,11 @@
"--format", "CI::Reporter::RSpecDoc"].join(" ")
ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
end
+
+ task :rspecbase => :spec_report_cleanup do
+ spec_opts = ["--require", CI::Reporter.maybe_quote_filename("#{File.dirname(__FILE__)}/rspec_loader.rb"),
+ "--format", "CI::Reporter::RSpecBase"].join(" ")
+ ENV["SPEC_OPTS"] = "#{ENV['SPEC_OPTS']} #{spec_opts}"
+ end
end
end
View
7 lib/ci/reporter/rspec.rb
@@ -206,5 +206,12 @@ def initialize(*args)
super
end
end
+
+ class RSpecBase < RSpec
+ def initialize(*args)
+ @formatter = RSpecFormatters::BaseFormatter.new(*args)
+ super
+ end
+ end
end
end

0 comments on commit 27c44ce

Please sign in to comment.