rr 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ * 0.4.1
2
+ - Fixed backward compatability issues with rspec
3
+ - Renamed Space#verify_double_insertions to #verify_doubles
4
+
1
5
  * 0.4.0
2
6
  - Documentation improvements
3
7
  - Renamed Double to DoubleInsertion
data/Rakefile CHANGED
@@ -26,7 +26,7 @@ def run_suite
26
26
  end
27
27
 
28
28
  PKG_NAME = "rr"
29
- PKG_VERSION = "0.4.0"
29
+ PKG_VERSION = "0.4.1"
30
30
  PKG_FILES = FileList[
31
31
  '[A-Z]*',
32
32
  '*.rb',
@@ -4,7 +4,7 @@ module RR
4
4
  # Verifies all the DoubleInsertion objects have met their
5
5
  # TimesCalledExpectations.
6
6
  def verify
7
- RR::Space.instance.verify_double_insertions
7
+ RR::Space.instance.verify_doubles
8
8
  end
9
9
 
10
10
  # Resets the registered Doubles and ordered Doubles
@@ -225,4 +225,7 @@ module RR
225
225
  end
226
226
  end
227
227
  end
228
+ module Extensions
229
+ InstanceMethods = Adapters::RRMethods
230
+ end
228
231
  end
data/lib/rr/space.rb CHANGED
@@ -87,7 +87,7 @@ module RR
87
87
 
88
88
  # Verifies all the DoubleInsertion objects have met their
89
89
  # TimesCalledExpectations.
90
- def verify_double_insertions
90
+ def verify_doubles
91
91
  @double_insertions.each do |object, method_double_map|
92
92
  method_double_map.keys.each do |method_name|
93
93
  verify_double(object, method_name)
@@ -1,7 +1,7 @@
1
1
  module RR
2
2
  describe Space, :shared => true do
3
3
  after(:each) do
4
- Space.instance.verify_double_insertions
4
+ Space.instance.verify_doubles
5
5
  end
6
6
  end
7
7
  end
@@ -28,7 +28,7 @@ module RR
28
28
  describe Space do
29
29
  it_should_behave_like "RR::Space"
30
30
 
31
- describe "#verify_double_insertions" do
31
+ describe "#verify_doubles" do
32
32
  before do
33
33
  @space = Space.new
34
34
  @object1 = Object.new
@@ -66,7 +66,7 @@ module RR
66
66
  end
67
67
  end
68
68
 
69
- @space.verify_double_insertions
69
+ @space.verify_doubles
70
70
  double1_verify_calls.should == 1
71
71
  double2_verify_calls.should == 1
72
72
  double1_reset_calls.should == 1
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: rr
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.0
7
- date: 2007-12-30 00:00:00 -08:00
6
+ version: 0.4.1
7
+ date: 2007-12-31 00:00:00 -08:00
8
8
  summary: RR (Double Ruby) is a double framework that features a rich selection of double techniques and a terse syntax. http://xunitpatterns.com/Test%20Double.html
9
9
  require_paths:
10
10
  - lib