rr 1.0.4 → 1.0.5
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.
- checksums.yaml +15 -0
- data/CHANGES.md +392 -0
- data/Gemfile +7 -10
- data/README.md +822 -0
- data/Rakefile +24 -78
- data/VERSION +1 -0
- data/lib/rr/adapters/minitest.rb +6 -0
- data/lib/rr/adapters/rr_methods.rb +6 -10
- data/lib/rr/adapters/rspec.rb +3 -0
- data/lib/rr/adapters/rspec2.rb +30 -0
- data/lib/rr/adapters/test_unit.rb +2 -0
- data/lib/rr/double.rb +3 -2
- data/lib/rr/double_definitions/child_double_definition_create.rb +3 -2
- data/lib/rr/double_definitions/double_definition.rb +15 -13
- data/lib/rr/double_definitions/double_definition_create.rb +9 -5
- data/lib/rr/double_definitions/double_injections/any_instance_of.rb +3 -2
- data/lib/rr/double_definitions/strategies/strategy.rb +5 -4
- data/lib/rr/double_definitions/strategies/strategy_methods.rb +6 -8
- data/lib/rr/double_definitions/strategies/verification/mock.rb +3 -3
- data/lib/rr/double_matches.rb +2 -1
- data/lib/rr/expectations/argument_equality_expectation.rb +2 -2
- data/lib/rr/expectations/times_called_expectation.rb +2 -2
- data/lib/rr/injections/double_injection.rb +12 -11
- data/lib/rr/injections/injection.rb +2 -2
- data/lib/rr/injections/method_missing_injection.rb +21 -7
- data/lib/rr/injections/singleton_method_added_injection.rb +3 -1
- data/lib/rr/method_dispatches/base_method_dispatch.rb +1 -1
- data/lib/rr/method_dispatches/method_dispatch.rb +2 -1
- data/lib/rr/method_dispatches/method_missing_dispatch.rb +2 -1
- data/lib/rr/proc_from_block.rb +8 -4
- data/lib/rr/space.rb +3 -2
- data/lib/rr/times_called_matchers/times_called_matcher.rb +2 -2
- data/lib/rr/version.rb +5 -0
- data/lib/rr/wildcard_matchers/boolean.rb +2 -2
- data/lib/rr.rb +3 -0
- data/spec/runner.rb +41 -0
- metadata +45 -133
- data/.gitignore +0 -10
- data/.runrc +0 -3
- data/.rvmrc +0 -2
- data/CHANGES +0 -266
- data/Gemfile.lock +0 -31
- data/README.rdoc +0 -392
- data/benchmarks/rr_benchmark.rb +0 -32
- data/benchmarks/rspec_benchmark.rb +0 -14
- data/doc/0.6.0.release.markdown +0 -81
- data/doc/todo.txt +0 -0
- data/introducting_rr.txt +0 -206
- data/rr.gemspec +0 -37
- data/spec/api/any_instance_of/all_instances_of_spec.rb +0 -12
- data/spec/api/any_instance_of/any_instance_of_spec.rb +0 -47
- data/spec/api/any_instance_of/instance_of_spec.rb +0 -12
- data/spec/api/dont_allow/dont_allow_after_stub_spec.rb +0 -14
- data/spec/api/mock/mock_spec.rb +0 -193
- data/spec/api/proxy/proxy_spec.rb +0 -86
- data/spec/api/spy/spy_spec.rb +0 -49
- data/spec/api/strong/strong_spec.rb +0 -87
- data/spec/api/stub/stub_spec.rb +0 -152
- data/spec/core_spec_suite.rb +0 -19
- data/spec/environment_fixture_setup.rb +0 -8
- data/spec/minitest_spec_suite.rb +0 -21
- data/spec/proc_from_block_spec.rb +0 -14
- data/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +0 -67
- data/spec/rr/adapters/rr_methods_creator_spec.rb +0 -137
- data/spec/rr/adapters/rr_methods_space_spec.rb +0 -98
- data/spec/rr/adapters/rr_methods_spec_helper.rb +0 -11
- data/spec/rr/adapters/rr_methods_times_matcher_spec.rb +0 -13
- data/spec/rr/double_definitions/child_double_definition_creator_spec.rb +0 -112
- data/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +0 -91
- data/spec/rr/double_definitions/double_definition_create_spec.rb +0 -443
- data/spec/rr/double_injection/double_injection_spec.rb +0 -546
- data/spec/rr/double_injection/double_injection_verify_spec.rb +0 -29
- data/spec/rr/errors/rr_error_spec.rb +0 -67
- data/spec/rr/expectations/any_argument_expectation_spec.rb +0 -47
- data/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +0 -14
- data/spec/rr/expectations/argument_equality_expectation_spec.rb +0 -135
- data/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +0 -34
- data/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +0 -82
- data/spec/rr/expectations/hash_including_spec.rb +0 -17
- data/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +0 -59
- data/spec/rr/expectations/satisfy_spec.rb +0 -14
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +0 -22
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +0 -37
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +0 -43
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +0 -15
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +0 -58
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +0 -35
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +0 -39
- data/spec/rr/minitest/minitest_integration_test.rb +0 -59
- data/spec/rr/minitest/test_helper.rb +0 -7
- data/spec/rr/rspec/invocation_matcher_spec.rb +0 -279
- data/spec/rr/rspec/rspec_adapter_spec.rb +0 -63
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +0 -31
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +0 -11
- data/spec/rr/rspec/rspec_usage_spec.rb +0 -86
- data/spec/rr/space/hash_with_object_id_key_spec.rb +0 -88
- data/spec/rr/space/space_spec.rb +0 -596
- data/spec/rr/test_unit/test_helper.rb +0 -7
- data/spec/rr/test_unit/test_unit_backtrace_test.rb +0 -36
- data/spec/rr/test_unit/test_unit_integration_test.rb +0 -59
- data/spec/rr/times_called_matchers/any_times_matcher_spec.rb +0 -47
- data/spec/rr/times_called_matchers/at_least_matcher_spec.rb +0 -55
- data/spec/rr/times_called_matchers/at_most_matcher_spec.rb +0 -70
- data/spec/rr/times_called_matchers/integer_matcher_spec.rb +0 -70
- data/spec/rr/times_called_matchers/proc_matcher_spec.rb +0 -55
- data/spec/rr/times_called_matchers/range_matcher_spec.rb +0 -76
- data/spec/rr/times_called_matchers/times_called_matcher_spec.rb +0 -118
- data/spec/rr/wildcard_matchers/anything_spec.rb +0 -24
- data/spec/rr/wildcard_matchers/boolean_spec.rb +0 -36
- data/spec/rr/wildcard_matchers/duck_type_spec.rb +0 -52
- data/spec/rr/wildcard_matchers/is_a_spec.rb +0 -32
- data/spec/rr/wildcard_matchers/numeric_spec.rb +0 -32
- data/spec/rr/wildcard_matchers/range_spec.rb +0 -35
- data/spec/rr/wildcard_matchers/regexp_spec.rb +0 -43
- data/spec/rr_spec.rb +0 -28
- data/spec/rspec_spec_suite.rb +0 -17
- data/spec/spec.opts +0 -10
- data/spec/spec_helper.rb +0 -41
- data/spec/spec_suite.rb +0 -54
- data/spec/spy_verification_spec.rb +0 -129
- data/spec/test_unit_spec_suite.rb +0 -21
|
@@ -12,9 +12,13 @@ module RR
|
|
|
12
12
|
instances.include?(subject)
|
|
13
13
|
end
|
|
14
14
|
end)
|
|
15
|
+
|
|
16
|
+
BoundObjects = {}
|
|
17
|
+
|
|
15
18
|
include ClassInstanceMethodDefined
|
|
16
19
|
|
|
17
20
|
attr_reader :subject_class
|
|
21
|
+
|
|
18
22
|
def initialize(subject_class)
|
|
19
23
|
@subject_class = subject_class
|
|
20
24
|
@placeholder_method_defined = false
|
|
@@ -30,6 +34,18 @@ module RR
|
|
|
30
34
|
end
|
|
31
35
|
end
|
|
32
36
|
end
|
|
37
|
+
# Ruby 1.9 will raise a NoMethodError when #method_missing is defined
|
|
38
|
+
# on the subject, but #to_ary isn't. #method_missing will always be
|
|
39
|
+
# defined thanks to BasicObject, but #to_ary may not, so in this case
|
|
40
|
+
# we need to supply our own. Furthermore, Ruby has special logic to
|
|
41
|
+
# handle the return value of #to_ary; if it is nil, then it tells Ruby
|
|
42
|
+
# to ignore #to_ary altogether and use a default rule to arrayify the
|
|
43
|
+
# object in question.
|
|
44
|
+
unless class_instance_method_defined(subject_class, :to_ary)
|
|
45
|
+
subject_class.class_eval do
|
|
46
|
+
def to_ary; nil; end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
33
49
|
subject_class.__send__(:alias_method, original_method_alias_name, :method_missing)
|
|
34
50
|
bind_method
|
|
35
51
|
end
|
|
@@ -50,18 +66,16 @@ module RR
|
|
|
50
66
|
end
|
|
51
67
|
end
|
|
52
68
|
|
|
53
|
-
|
|
54
|
-
BoundObjects = {}
|
|
55
|
-
|
|
69
|
+
protected
|
|
56
70
|
def bind_method
|
|
57
71
|
id = BoundObjects.size
|
|
58
72
|
BoundObjects[id] = subject_class
|
|
59
73
|
|
|
60
74
|
subject_class.class_eval((<<-METHOD), __FILE__, __LINE__ + 1)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
75
|
+
def method_missing(method_name, *args, &block)
|
|
76
|
+
obj = ::RR::Injections::MethodMissingInjection::BoundObjects[#{id}]
|
|
77
|
+
MethodDispatches::MethodMissingDispatch.new(self, obj, method_name, args, block).call
|
|
78
|
+
end
|
|
65
79
|
METHOD
|
|
66
80
|
end
|
|
67
81
|
|
|
@@ -16,9 +16,11 @@ module RR
|
|
|
16
16
|
instances.include?(subject)
|
|
17
17
|
end
|
|
18
18
|
end)
|
|
19
|
+
|
|
19
20
|
include ClassInstanceMethodDefined
|
|
20
21
|
|
|
21
22
|
attr_reader :subject_class
|
|
23
|
+
|
|
22
24
|
def initialize(subject_class)
|
|
23
25
|
@subject_class = subject_class
|
|
24
26
|
@placeholder_method_defined = false
|
|
@@ -63,7 +65,7 @@ module RR
|
|
|
63
65
|
end
|
|
64
66
|
end
|
|
65
67
|
|
|
66
|
-
|
|
68
|
+
protected
|
|
67
69
|
def original_method_alias_name
|
|
68
70
|
"__rr__original_singleton_method_added"
|
|
69
71
|
end
|
|
@@ -2,6 +2,7 @@ module RR
|
|
|
2
2
|
module MethodDispatches
|
|
3
3
|
class MethodDispatch < BaseMethodDispatch
|
|
4
4
|
attr_reader :double_injection, :subject
|
|
5
|
+
|
|
5
6
|
def initialize(double_injection, subject, args, block)
|
|
6
7
|
@double_injection, @subject, @args, @block = double_injection, subject, args, block
|
|
7
8
|
@double = find_double_to_attempt
|
|
@@ -34,7 +35,7 @@ module RR
|
|
|
34
35
|
end
|
|
35
36
|
end
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
protected
|
|
38
39
|
def call_implementation
|
|
39
40
|
if implementation_is_original_method?
|
|
40
41
|
call_original_method
|
|
@@ -8,6 +8,7 @@ module RR
|
|
|
8
8
|
end)
|
|
9
9
|
|
|
10
10
|
attr_reader :subject, :subject_class, :method_name
|
|
11
|
+
|
|
11
12
|
def initialize(subject, subject_class, method_name, args, block)
|
|
12
13
|
@subject, @subject_class, @method_name, @args, @block = subject, subject_class, method_name, args, block
|
|
13
14
|
end
|
|
@@ -36,7 +37,7 @@ module RR
|
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
protected
|
|
40
41
|
def call_implementation
|
|
41
42
|
if implementation_is_original_method?
|
|
42
43
|
space.record_call(subject, method_name, args, block)
|
data/lib/rr/proc_from_block.rb
CHANGED
data/lib/rr/space.rb
CHANGED
|
@@ -13,7 +13,7 @@ module RR
|
|
|
13
13
|
end
|
|
14
14
|
attr_writer :instance
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
protected
|
|
17
17
|
def method_missing(method_name, *args, &block)
|
|
18
18
|
instance.__send__(method_name, *args, &block)
|
|
19
19
|
end
|
|
@@ -21,6 +21,7 @@ module RR
|
|
|
21
21
|
|
|
22
22
|
attr_reader :ordered_doubles, :recorded_calls
|
|
23
23
|
attr_accessor :trim_backtrace
|
|
24
|
+
|
|
24
25
|
def initialize
|
|
25
26
|
@ordered_doubles = []
|
|
26
27
|
@trim_backtrace = false
|
|
@@ -86,7 +87,7 @@ module RR
|
|
|
86
87
|
]
|
|
87
88
|
end
|
|
88
89
|
|
|
89
|
-
|
|
90
|
+
protected
|
|
90
91
|
# Removes the ordered Doubles from the list
|
|
91
92
|
def reset_ordered_doubles
|
|
92
93
|
@ordered_doubles.clear
|
data/lib/rr/version.rb
ADDED
data/lib/rr.rb
CHANGED
|
@@ -83,9 +83,12 @@ require "#{dir}/rr/spy_verification_proxy"
|
|
|
83
83
|
require "#{dir}/rr/spy_verification"
|
|
84
84
|
|
|
85
85
|
require "#{dir}/rr/adapters/rspec"
|
|
86
|
+
require "#{dir}/rr/adapters/rspec2"
|
|
86
87
|
require "#{dir}/rr/adapters/test_unit"
|
|
87
88
|
require "#{dir}/rr/adapters/minitest"
|
|
88
89
|
|
|
90
|
+
require "#{dir}/rr/version"
|
|
91
|
+
|
|
89
92
|
module RR
|
|
90
93
|
class << self
|
|
91
94
|
include Adapters::RRMethods
|
data/spec/runner.rb
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
require 'session'
|
|
2
|
+
|
|
3
|
+
class SuitesRunner
|
|
4
|
+
TEST_SUITES = [
|
|
5
|
+
[:rspec, 'RSpec', 'RSpec'],
|
|
6
|
+
[:test_unit, 'TestUnit', 'Test::Unit'],
|
|
7
|
+
[:minitest, 'Minitest', 'MiniTest']
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
attr_reader :bash
|
|
11
|
+
|
|
12
|
+
def initialize
|
|
13
|
+
@bash = Session::Bash.new
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def run
|
|
17
|
+
TEST_SUITES.each_with_index do |(path, class_fragment, desc), i|
|
|
18
|
+
puts "----------------" unless i == 0
|
|
19
|
+
run_examples(path, class_fragment, desc)
|
|
20
|
+
puts
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def run_examples(path, class_fragment, desc)
|
|
25
|
+
path = File.expand_path("../suites/#{path}/runner.rb", __FILE__)
|
|
26
|
+
# From http://www.eglug.org/node/946
|
|
27
|
+
bash.execute "exec 3>&1", :out => STDOUT, :err => STDERR
|
|
28
|
+
# XXX: why are we checking for this warning here...
|
|
29
|
+
bash.execute "ruby -W #{path} 2>&1 >&3 3>&- | grep -v 'warning: useless use of' 3>&-; STATUS=${PIPESTATUS[0]}", :out => STDOUT, :err => STDERR
|
|
30
|
+
status = bash.execute("echo $STATUS")[0].to_s.strip.to_i
|
|
31
|
+
bash.execute "exec 3>&-", :out => STDOUT, :err => STDERR
|
|
32
|
+
unless status == 0
|
|
33
|
+
raise "#{desc} Suite Failed"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
if $0 == __FILE__
|
|
39
|
+
SuitesRunner.new.run
|
|
40
|
+
end
|
|
41
|
+
|
metadata
CHANGED
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rr
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
version: 1.0.4
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.5
|
|
6
5
|
platform: ruby
|
|
7
|
-
authors:
|
|
6
|
+
authors:
|
|
8
7
|
- Brian Takita
|
|
8
|
+
- Elliot Winkler
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
date: 2011-06-16 00:00:00 -07:00
|
|
14
|
-
default_executable:
|
|
12
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
|
15
13
|
dependencies: []
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
email:
|
|
14
|
+
description: RR is a double framework that features a rich selection of double techniques
|
|
15
|
+
and a terse syntax.
|
|
16
|
+
email:
|
|
17
|
+
- elliot.winkler@gmail.com
|
|
19
18
|
executables: []
|
|
20
|
-
|
|
21
19
|
extensions: []
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- CHANGES
|
|
25
|
-
- README.rdoc
|
|
26
|
-
files:
|
|
27
|
-
- .gitignore
|
|
28
|
-
- .runrc
|
|
29
|
-
- .rvmrc
|
|
30
|
-
- CHANGES
|
|
31
|
-
- Gemfile
|
|
32
|
-
- Gemfile.lock
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- CHANGES.md
|
|
33
23
|
- LICENSE
|
|
34
|
-
- README.
|
|
24
|
+
- README.md
|
|
25
|
+
- VERSION
|
|
26
|
+
- Gemfile
|
|
35
27
|
- Rakefile
|
|
36
|
-
- benchmarks/rr_benchmark.rb
|
|
37
|
-
- benchmarks/rspec_benchmark.rb
|
|
38
|
-
- doc/0.6.0.release.markdown
|
|
39
|
-
- doc/todo.txt
|
|
40
|
-
- introducting_rr.txt
|
|
41
|
-
- lib/rr.rb
|
|
42
28
|
- lib/rr/adapters/minitest.rb
|
|
43
29
|
- lib/rr/adapters/rr_methods.rb
|
|
44
30
|
- lib/rr/adapters/rspec.rb
|
|
31
|
+
- lib/rr/adapters/rspec2.rb
|
|
45
32
|
- lib/rr/adapters/test_unit.rb
|
|
46
33
|
- lib/rr/blank_slate.rb
|
|
47
34
|
- lib/rr/class_instance_method_defined.rb
|
|
@@ -103,7 +90,7 @@ files:
|
|
|
103
90
|
- lib/rr/times_called_matchers/range_matcher.rb
|
|
104
91
|
- lib/rr/times_called_matchers/terminal.rb
|
|
105
92
|
- lib/rr/times_called_matchers/times_called_matcher.rb
|
|
106
|
-
- lib/rr/
|
|
93
|
+
- lib/rr/version.rb
|
|
107
94
|
- lib/rr/wildcard_matchers/anything.rb
|
|
108
95
|
- lib/rr/wildcard_matchers/boolean.rb
|
|
109
96
|
- lib/rr/wildcard_matchers/duck_type.rb
|
|
@@ -113,109 +100,34 @@ files:
|
|
|
113
100
|
- lib/rr/wildcard_matchers/range.rb
|
|
114
101
|
- lib/rr/wildcard_matchers/regexp.rb
|
|
115
102
|
- lib/rr/wildcard_matchers/satisfy.rb
|
|
116
|
-
- rr.
|
|
117
|
-
-
|
|
118
|
-
- spec/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
- spec/api/spy/spy_spec.rb
|
|
124
|
-
- spec/api/strong/strong_spec.rb
|
|
125
|
-
- spec/api/stub/stub_spec.rb
|
|
126
|
-
- spec/core_spec_suite.rb
|
|
127
|
-
- spec/environment_fixture_setup.rb
|
|
128
|
-
- spec/minitest_spec_suite.rb
|
|
129
|
-
- spec/proc_from_block_spec.rb
|
|
130
|
-
- spec/rr/adapters/rr_methods_argument_matcher_spec.rb
|
|
131
|
-
- spec/rr/adapters/rr_methods_creator_spec.rb
|
|
132
|
-
- spec/rr/adapters/rr_methods_space_spec.rb
|
|
133
|
-
- spec/rr/adapters/rr_methods_spec_helper.rb
|
|
134
|
-
- spec/rr/adapters/rr_methods_times_matcher_spec.rb
|
|
135
|
-
- spec/rr/double_definitions/child_double_definition_creator_spec.rb
|
|
136
|
-
- spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb
|
|
137
|
-
- spec/rr/double_definitions/double_definition_create_spec.rb
|
|
138
|
-
- spec/rr/double_injection/double_injection_spec.rb
|
|
139
|
-
- spec/rr/double_injection/double_injection_verify_spec.rb
|
|
140
|
-
- spec/rr/errors/rr_error_spec.rb
|
|
141
|
-
- spec/rr/expectations/any_argument_expectation_spec.rb
|
|
142
|
-
- spec/rr/expectations/anything_argument_equality_expectation_spec.rb
|
|
143
|
-
- spec/rr/expectations/argument_equality_expectation_spec.rb
|
|
144
|
-
- spec/rr/expectations/boolean_argument_equality_expectation_spec.rb
|
|
145
|
-
- spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb
|
|
146
|
-
- spec/rr/expectations/hash_including_spec.rb
|
|
147
|
-
- spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb
|
|
148
|
-
- spec/rr/expectations/satisfy_spec.rb
|
|
149
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb
|
|
150
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb
|
|
151
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb
|
|
152
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb
|
|
153
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb
|
|
154
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb
|
|
155
|
-
- spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb
|
|
156
|
-
- spec/rr/minitest/minitest_integration_test.rb
|
|
157
|
-
- spec/rr/minitest/test_helper.rb
|
|
158
|
-
- spec/rr/rspec/invocation_matcher_spec.rb
|
|
159
|
-
- spec/rr/rspec/rspec_adapter_spec.rb
|
|
160
|
-
- spec/rr/rspec/rspec_backtrace_tweaking_spec.rb
|
|
161
|
-
- spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb
|
|
162
|
-
- spec/rr/rspec/rspec_usage_spec.rb
|
|
163
|
-
- spec/rr/space/hash_with_object_id_key_spec.rb
|
|
164
|
-
- spec/rr/space/space_spec.rb
|
|
165
|
-
- spec/rr/test_unit/test_helper.rb
|
|
166
|
-
- spec/rr/test_unit/test_unit_backtrace_test.rb
|
|
167
|
-
- spec/rr/test_unit/test_unit_integration_test.rb
|
|
168
|
-
- spec/rr/times_called_matchers/any_times_matcher_spec.rb
|
|
169
|
-
- spec/rr/times_called_matchers/at_least_matcher_spec.rb
|
|
170
|
-
- spec/rr/times_called_matchers/at_most_matcher_spec.rb
|
|
171
|
-
- spec/rr/times_called_matchers/integer_matcher_spec.rb
|
|
172
|
-
- spec/rr/times_called_matchers/proc_matcher_spec.rb
|
|
173
|
-
- spec/rr/times_called_matchers/range_matcher_spec.rb
|
|
174
|
-
- spec/rr/times_called_matchers/times_called_matcher_spec.rb
|
|
175
|
-
- spec/rr/wildcard_matchers/anything_spec.rb
|
|
176
|
-
- spec/rr/wildcard_matchers/boolean_spec.rb
|
|
177
|
-
- spec/rr/wildcard_matchers/duck_type_spec.rb
|
|
178
|
-
- spec/rr/wildcard_matchers/is_a_spec.rb
|
|
179
|
-
- spec/rr/wildcard_matchers/numeric_spec.rb
|
|
180
|
-
- spec/rr/wildcard_matchers/range_spec.rb
|
|
181
|
-
- spec/rr/wildcard_matchers/regexp_spec.rb
|
|
182
|
-
- spec/rr_spec.rb
|
|
183
|
-
- spec/rspec_spec_suite.rb
|
|
184
|
-
- spec/spec.opts
|
|
185
|
-
- spec/spec_helper.rb
|
|
186
|
-
- spec/spec_suite.rb
|
|
187
|
-
- spec/spy_verification_spec.rb
|
|
188
|
-
- spec/test_unit_spec_suite.rb
|
|
189
|
-
has_rdoc: true
|
|
190
|
-
homepage: http://pivotallabs.com
|
|
191
|
-
licenses: []
|
|
192
|
-
|
|
103
|
+
- lib/rr/wildcard_matchers.rb
|
|
104
|
+
- lib/rr.rb
|
|
105
|
+
- spec/runner.rb
|
|
106
|
+
homepage: http://rr.github.com/rr
|
|
107
|
+
licenses:
|
|
108
|
+
- MIT
|
|
109
|
+
metadata: {}
|
|
193
110
|
post_install_message:
|
|
194
|
-
rdoc_options:
|
|
195
|
-
|
|
196
|
-
- README.rdoc
|
|
197
|
-
- --inline-source
|
|
198
|
-
- --line-numbers
|
|
199
|
-
require_paths:
|
|
111
|
+
rdoc_options: []
|
|
112
|
+
require_paths:
|
|
200
113
|
- lib
|
|
201
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- !ruby/object:Gem::Version
|
|
212
|
-
version: "0"
|
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - ! '>='
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '0'
|
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - ! '>='
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '0'
|
|
213
124
|
requirements: []
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
rubygems_version: 1.3.9.2
|
|
125
|
+
rubyforge_project:
|
|
126
|
+
rubygems_version: 2.0.3
|
|
217
127
|
signing_key:
|
|
218
|
-
specification_version:
|
|
219
|
-
summary: RR
|
|
220
|
-
|
|
221
|
-
|
|
128
|
+
specification_version: 4
|
|
129
|
+
summary: RR is a double framework that features a rich selection of double techniques
|
|
130
|
+
and a terse syntax.
|
|
131
|
+
test_files:
|
|
132
|
+
- spec/runner.rb
|
|
133
|
+
has_rdoc:
|
data/.gitignore
DELETED
data/.runrc
DELETED
data/.rvmrc
DELETED