Permalink
Browse files

Fix incompatibility with RSpec 1.0

git-svn-id: http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk@95 b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information...
1 parent 68aca7c commit c49ef10e115ddf18354621801b943b2a757e103e @nicksieger nicksieger committed May 31, 2007
Showing with 11 additions and 3 deletions.
  1. +4 −0 History.txt
  2. +1 −1 Rakefile
  3. +6 −2 lib/ci/reporter/rspec.rb
View
@@ -1,3 +1,7 @@
+== 1.3.1
+
+- Fixed to be compatible with RSpec 1.0.x (added fourth parameter to Formatter#dump_summary)
+
== 1.3
- Fixed to be compatible with RSpec 0.9
View
@@ -4,7 +4,7 @@ require 'hoe'
MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
"lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
-Hoe.new("ci_reporter", "1.3") do |p|
+Hoe.new("ci_reporter", "1.3.1") do |p|
p.rubyforge_name = "caldersphere"
p.url = "http://caldersphere.rubyforge.org/ci_reporter"
p.author = "Nick Sieger"
View
@@ -106,8 +106,12 @@ def dump_failure(counter, failure)
super
end
- def dump_summary(duration, example_count, failure_count)
- super
+ def dump_summary(duration, example_count, failure_count, not_implemented_count = nil)
+ begin
+ super
+ rescue ArgumentError
+ super(duration, example_count, failure_count)
+ end
write_report
end

0 comments on commit c49ef10

Please sign in to comment.