Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Finishing 1.4 release

git-svn-id: http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk@178 b03c2d0b-2f10-0410-a2f9-fc8001506dfa
  • Loading branch information...
commit f13ed9f9dd0d6765ae49557809d4500945d023dc 1 parent 7e50b59
@nicksieger nicksieger authored
View
7 History.txt
@@ -1,7 +1,8 @@
-== 1.3.6
+== 1.4
-- Explicit dependency requirement on Builder
-- Test::Unit tests that fail in multiple places (setup, test method, and teardown) are now tracked
+- Test::Unit tests that fail in multiple places (setup, test method, and teardown) are now tracked (marcog)
+- Explicit dependency requirement on Builder (>= 2.1.2)
+- Use of RSpec < 0.9 is now deprecated; support will probably disappear in the next version
== 1.3.5
View
13 lib/ci/reporter/rspec.rb
@@ -46,6 +46,15 @@ def initialize(output, dry_run=false, colour=false, report_mgr=nil)
@suite = nil
end
+ def deprecated
+ unless @warned
+ require 'ci/reporter/version'
+ warn "warning: use of RSpec < 0.9 with CI::Reporter #{CI::Reporter::VERSION} is deprecated;"
+ warn "a future version will not be compatible."
+ end
+ @warned = true
+ end
+
def start(spec_count)
super
end
@@ -53,6 +62,7 @@ def start(spec_count)
# Pre-0.9 hook
def add_context(name, first)
super
+ deprecated
new_suite(name)
end
@@ -65,6 +75,7 @@ def add_behaviour(name)
# Pre-0.9 hook
def spec_started(name)
super
+ deprecated
case_started(name)
end
@@ -77,6 +88,7 @@ def example_started(name)
# Pre-0.9 hook
def spec_failed(name, counter, failure)
super
+ deprecated
case_failed(name, counter, failure)
end
@@ -89,6 +101,7 @@ def example_failed(name, counter, failure)
# Pre-0.9 hook
def spec_passed(name)
super
+ deprecated
case_passed(name)
end
View
2  lib/ci/reporter/version.rb
@@ -1,5 +1,5 @@
module CI
module Reporter
- VERSION = "1.3.6"
+ VERSION = "1.4"
end
end
View
7 spec/ci/reporter/rspec_spec.rb
@@ -30,4 +30,11 @@
@fmt.example_failed("should fail", 1, @error)
@fmt.dump_summary(0.1, 2, 1)
end
+
+ it "should report deprecation when called with RSpec < 0.9" do
+ @fmt.should_receive(:warn).exactly(2).times
+ @fmt.deprecated
+ @fmt.deprecated
+ @fmt.deprecated
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.