rr 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/CHANGES +4 -0
  2. data/README +25 -0
  3. data/Rakefile +1 -1
  4. data/lib/rr/double.rb +10 -10
  5. data/lib/rr/double_creator.rb +5 -5
  6. data/lib/rr/double_injection.rb +7 -7
  7. data/lib/rr/double_method_proxy.rb +1 -2
  8. data/lib/rr/space.rb +21 -21
  9. data/lib/rr/wildcard_matchers/anything.rb +4 -0
  10. data/lib/rr/wildcard_matchers/boolean.rb +4 -0
  11. data/lib/rr/wildcard_matchers/duck_type.rb +7 -0
  12. data/lib/rr/wildcard_matchers/is_a.rb +4 -0
  13. data/lib/rr/wildcard_matchers/numeric.rb +4 -0
  14. data/spec/high_level_spec.rb +14 -0
  15. data/spec/rr/adapters/rr_methods_space_spec.rb +16 -16
  16. data/spec/rr/double/double_injection_bind_spec.rb +47 -20
  17. data/spec/rr/double/double_injection_dispatching_spec.rb +26 -20
  18. data/spec/rr/double/double_injection_has_original_method_spec.rb +10 -11
  19. data/spec/rr/double/double_injection_register_scenario_spec.rb +6 -6
  20. data/spec/rr/double/double_injection_reset_spec.rb +11 -14
  21. data/spec/rr/double/double_injection_spec.rb +18 -12
  22. data/spec/rr/double/double_injection_verify_spec.rb +5 -5
  23. data/spec/rr/double_definition_spec.rb +5 -5
  24. data/spec/rr/double_method_proxy_spec.rb +5 -5
  25. data/spec/rr/double_spec.rb +48 -48
  26. data/spec/rr/expectations/anything_spec.rb +14 -0
  27. data/spec/rr/expectations/boolean_spec.rb +14 -0
  28. data/spec/rr/expectations/duck_type_spec.rb +14 -0
  29. data/spec/rr/expectations/is_a_spec.rb +14 -0
  30. data/spec/rr/expectations/numeric_spec.rb +14 -0
  31. data/spec/rr/expectations/range_spec.rb +10 -0
  32. data/spec/rr/expectations/regexp_spec.rb +10 -0
  33. data/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +3 -3
  34. data/spec/rr/rspec/rspec_adapter_spec.rb +12 -12
  35. data/spec/rr/space/space_create_spec.rb +27 -37
  36. data/spec/rr/space/space_register_spec.rb +3 -3
  37. data/spec/rr/space/space_reset_spec.rb +24 -24
  38. data/spec/rr/space/space_spec.rb +2 -2
  39. data/spec/rr/space/space_verify_spec.rb +18 -18
  40. metadata +9 -2
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.3
7
- date: 2008-01-07 00:00:00 -08:00
6
+ version: 0.4.4
7
+ date: 2008-01-15 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
@@ -102,14 +102,21 @@ files:
102
102
  - spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb
103
103
  - spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb
104
104
  - spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb
105
+ - spec/rr/expectations/numeric_spec.rb
106
+ - spec/rr/expectations/duck_type_spec.rb
107
+ - spec/rr/expectations/boolean_spec.rb
105
108
  - spec/rr/expectations/boolean_argument_equality_expectation_spec.rb
106
109
  - spec/rr/expectations/regexp_argument_equality_expectation_spec.rb
107
110
  - spec/rr/expectations/anything_argument_equality_expectation_spec.rb
108
111
  - spec/rr/expectations/is_a_argument_equality_expectation_spec.rb
112
+ - spec/rr/expectations/range_spec.rb
109
113
  - spec/rr/expectations/any_argument_expectation_spec.rb
114
+ - spec/rr/expectations/regexp_spec.rb
110
115
  - spec/rr/expectations/argument_equality_expectation_spec.rb
116
+ - spec/rr/expectations/is_a_spec.rb
111
117
  - spec/rr/expectations/numeric_argument_equality_expectation_spec.rb
112
118
  - spec/rr/expectations/duck_type_argument_equality_expectation_spec.rb
119
+ - spec/rr/expectations/anything_spec.rb
113
120
  - spec/rr/expectations/range_argument_equality_expectation_spec.rb
114
121
  - spec/rr/errors/rr_error_spec.rb
115
122
  - spec/rr/adapters/rr_methods_spec_helper.rb