mcmire-rr 1.0.5.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +269 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +47 -0
- data/LICENSE +22 -0
- data/README.rdoc +390 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/lib/rr.rb +101 -0
- data/lib/rr/adapters/minitest.rb +31 -0
- data/lib/rr/adapters/rr_methods.rb +146 -0
- data/lib/rr/adapters/rspec.rb +61 -0
- data/lib/rr/adapters/rspec2.rb +22 -0
- data/lib/rr/adapters/test_unit.rb +31 -0
- data/lib/rr/blank_slate.rb +17 -0
- data/lib/rr/class_instance_method_defined.rb +9 -0
- data/lib/rr/double.rb +154 -0
- data/lib/rr/double_definitions/child_double_definition_create.rb +27 -0
- data/lib/rr/double_definitions/double_definition.rb +365 -0
- data/lib/rr/double_definitions/double_definition_create.rb +139 -0
- data/lib/rr/double_definitions/double_definition_create_blank_slate.rb +26 -0
- data/lib/rr/double_definitions/double_injections/any_instance_of.rb +28 -0
- data/lib/rr/double_definitions/double_injections/instance.rb +16 -0
- data/lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb +30 -0
- data/lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb +10 -0
- data/lib/rr/double_definitions/strategies/double_injection/instance.rb +17 -0
- data/lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb +10 -0
- data/lib/rr/double_definitions/strategies/implementation/proxy.rb +60 -0
- data/lib/rr/double_definitions/strategies/implementation/reimplementation.rb +14 -0
- data/lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb +15 -0
- data/lib/rr/double_definitions/strategies/strategy.rb +43 -0
- data/lib/rr/double_definitions/strategies/strategy_methods.rb +53 -0
- data/lib/rr/double_definitions/strategies/verification/dont_allow.rb +31 -0
- data/lib/rr/double_definitions/strategies/verification/mock.rb +42 -0
- data/lib/rr/double_definitions/strategies/verification/stub.rb +43 -0
- data/lib/rr/double_definitions/strategies/verification/verification_strategy.rb +10 -0
- data/lib/rr/double_matches.rb +42 -0
- data/lib/rr/errors/argument_equality_error.rb +6 -0
- data/lib/rr/errors/double_definition_error.rb +6 -0
- data/lib/rr/errors/double_not_found_error.rb +6 -0
- data/lib/rr/errors/double_order_error.rb +6 -0
- data/lib/rr/errors/rr_error.rb +20 -0
- data/lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb +8 -0
- data/lib/rr/errors/spy_verification_errors/invocation_count_error.rb +8 -0
- data/lib/rr/errors/spy_verification_errors/spy_verification_error.rb +8 -0
- data/lib/rr/errors/subject_does_not_implement_method_error.rb +6 -0
- data/lib/rr/errors/subject_has_different_arity_error.rb +6 -0
- data/lib/rr/errors/times_called_error.rb +6 -0
- data/lib/rr/expectations/any_argument_expectation.rb +21 -0
- data/lib/rr/expectations/argument_equality_expectation.rb +41 -0
- data/lib/rr/expectations/times_called_expectation.rb +57 -0
- data/lib/rr/hash_with_object_id_key.rb +46 -0
- data/lib/rr/injections/double_injection.rb +220 -0
- data/lib/rr/injections/injection.rb +33 -0
- data/lib/rr/injections/method_missing_injection.rb +73 -0
- data/lib/rr/injections/singleton_method_added_injection.rb +72 -0
- data/lib/rr/method_dispatches/base_method_dispatch.rb +84 -0
- data/lib/rr/method_dispatches/method_dispatch.rb +59 -0
- data/lib/rr/method_dispatches/method_missing_dispatch.rb +61 -0
- data/lib/rr/proc_from_block.rb +7 -0
- data/lib/rr/recorded_calls.rb +103 -0
- data/lib/rr/space.rb +119 -0
- data/lib/rr/spy_verification.rb +48 -0
- data/lib/rr/spy_verification_proxy.rb +13 -0
- data/lib/rr/times_called_matchers/any_times_matcher.rb +18 -0
- data/lib/rr/times_called_matchers/at_least_matcher.rb +15 -0
- data/lib/rr/times_called_matchers/at_most_matcher.rb +23 -0
- data/lib/rr/times_called_matchers/integer_matcher.rb +19 -0
- data/lib/rr/times_called_matchers/never_matcher.rb +23 -0
- data/lib/rr/times_called_matchers/non_terminal.rb +27 -0
- data/lib/rr/times_called_matchers/proc_matcher.rb +11 -0
- data/lib/rr/times_called_matchers/range_matcher.rb +21 -0
- data/lib/rr/times_called_matchers/terminal.rb +20 -0
- data/lib/rr/times_called_matchers/times_called_matcher.rb +44 -0
- data/lib/rr/wildcard_matchers.rb +158 -0
- data/lib/rr/wildcard_matchers/anything.rb +18 -0
- data/lib/rr/wildcard_matchers/boolean.rb +23 -0
- data/lib/rr/wildcard_matchers/duck_type.rb +32 -0
- data/lib/rr/wildcard_matchers/hash_including.rb +29 -0
- data/lib/rr/wildcard_matchers/is_a.rb +25 -0
- data/lib/rr/wildcard_matchers/numeric.rb +13 -0
- data/lib/rr/wildcard_matchers/range.rb +7 -0
- data/lib/rr/wildcard_matchers/regexp.rb +7 -0
- data/lib/rr/wildcard_matchers/satisfy.rb +26 -0
- data/spec/api/any_instance_of/all_instances_of_spec.rb +12 -0
- data/spec/api/any_instance_of/any_instance_of_spec.rb +47 -0
- data/spec/api/any_instance_of/instance_of_spec.rb +12 -0
- data/spec/api/dont_allow/dont_allow_after_stub_spec.rb +14 -0
- data/spec/api/mock/mock_spec.rb +193 -0
- data/spec/api/proxy/proxy_spec.rb +86 -0
- data/spec/api/spy/spy_spec.rb +49 -0
- data/spec/api/strong/strong_spec.rb +87 -0
- data/spec/api/stub/stub_spec.rb +152 -0
- data/spec/core_spec_suite.rb +18 -0
- data/spec/environment_fixture_setup.rb +7 -0
- data/spec/minitest_spec_suite.rb +21 -0
- data/spec/proc_from_block_spec.rb +14 -0
- data/spec/rr/adapters/rr_methods_argument_matcher_spec.rb +67 -0
- data/spec/rr/adapters/rr_methods_creator_spec.rb +137 -0
- data/spec/rr/adapters/rr_methods_space_spec.rb +98 -0
- data/spec/rr/adapters/rr_methods_spec_helper.rb +7 -0
- data/spec/rr/adapters/rr_methods_times_matcher_spec.rb +13 -0
- data/spec/rr/double_definitions/child_double_definition_creator_spec.rb +112 -0
- data/spec/rr/double_definitions/double_definition_create_blank_slate_spec.rb +91 -0
- data/spec/rr/double_definitions/double_definition_create_spec.rb +443 -0
- data/spec/rr/double_injection/double_injection_spec.rb +546 -0
- data/spec/rr/double_injection/double_injection_verify_spec.rb +29 -0
- data/spec/rr/errors/rr_error_spec.rb +67 -0
- data/spec/rr/expectations/any_argument_expectation_spec.rb +47 -0
- data/spec/rr/expectations/anything_argument_equality_expectation_spec.rb +14 -0
- data/spec/rr/expectations/argument_equality_expectation_spec.rb +135 -0
- data/spec/rr/expectations/boolean_argument_equality_expectation_spec.rb +34 -0
- data/spec/rr/expectations/hash_including_argument_equality_expectation_spec.rb +82 -0
- data/spec/rr/expectations/hash_including_spec.rb +17 -0
- data/spec/rr/expectations/satisfy_argument_equality_expectation_spec.rb +59 -0
- data/spec/rr/expectations/satisfy_spec.rb +14 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_any_times_spec.rb +22 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_least_spec.rb +37 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_at_most_spec.rb +43 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_helper.rb +11 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_integer_spec.rb +58 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_proc_spec.rb +35 -0
- data/spec/rr/expectations/times_called_expectation/times_called_expectation_range_spec.rb +39 -0
- data/spec/rr/minitest/minitest_integration_test.rb +59 -0
- data/spec/rr/minitest/test_helper.rb +7 -0
- data/spec/rr/rspec/invocation_matcher_spec.rb +279 -0
- data/spec/rr/rspec/rspec_adapter_spec.rb +63 -0
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec.rb +21 -0
- data/spec/rr/rspec/rspec_backtrace_tweaking_spec_fixture.rb +11 -0
- data/spec/rr/rspec/rspec_usage_spec.rb +86 -0
- data/spec/rr/space/hash_with_object_id_key_spec.rb +88 -0
- data/spec/rr/space/space_spec.rb +596 -0
- data/spec/rr/test_unit/test_helper.rb +7 -0
- data/spec/rr/test_unit/test_unit_backtrace_test.rb +36 -0
- data/spec/rr/test_unit/test_unit_integration_test.rb +59 -0
- data/spec/rr/times_called_matchers/any_times_matcher_spec.rb +47 -0
- data/spec/rr/times_called_matchers/at_least_matcher_spec.rb +55 -0
- data/spec/rr/times_called_matchers/at_most_matcher_spec.rb +70 -0
- data/spec/rr/times_called_matchers/integer_matcher_spec.rb +70 -0
- data/spec/rr/times_called_matchers/proc_matcher_spec.rb +55 -0
- data/spec/rr/times_called_matchers/range_matcher_spec.rb +76 -0
- data/spec/rr/times_called_matchers/times_called_matcher_spec.rb +118 -0
- data/spec/rr/wildcard_matchers/anything_spec.rb +24 -0
- data/spec/rr/wildcard_matchers/boolean_spec.rb +36 -0
- data/spec/rr/wildcard_matchers/duck_type_spec.rb +52 -0
- data/spec/rr/wildcard_matchers/is_a_spec.rb +32 -0
- data/spec/rr/wildcard_matchers/numeric_spec.rb +32 -0
- data/spec/rr/wildcard_matchers/range_spec.rb +35 -0
- data/spec/rr/wildcard_matchers/regexp_spec.rb +43 -0
- data/spec/rr_spec.rb +28 -0
- data/spec/rspec_spec_suite.rb +16 -0
- data/spec/spec_helper.rb +40 -0
- data/spec/spec_suite.rb +50 -0
- data/spec/spy_verification_spec.rb +129 -0
- data/spec/test_unit_spec_suite.rb +20 -0
- metadata +220 -0
data/spec/spec_suite.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler"
|
3
|
+
require "session"
|
4
|
+
|
5
|
+
class ExampleSuite
|
6
|
+
attr_reader :bash
|
7
|
+
def initialize
|
8
|
+
@bash = Session::Bash.new
|
9
|
+
end
|
10
|
+
|
11
|
+
def run
|
12
|
+
run_core_examples
|
13
|
+
run_rspec_examples
|
14
|
+
run_test_unit_examples
|
15
|
+
run_minitest_examples
|
16
|
+
end
|
17
|
+
|
18
|
+
def run_core_examples
|
19
|
+
run_suite("#{dir}/core_spec_suite.rb") || raise("Core suite Failed")
|
20
|
+
end
|
21
|
+
|
22
|
+
def run_rspec_examples
|
23
|
+
run_suite("#{dir}/rspec_spec_suite.rb") || raise("Rspec suite Failed")
|
24
|
+
end
|
25
|
+
|
26
|
+
def run_test_unit_examples
|
27
|
+
run_suite("#{dir}/test_unit_spec_suite.rb") || raise("Test::Unit suite Failed")
|
28
|
+
end
|
29
|
+
|
30
|
+
def run_minitest_examples
|
31
|
+
run_suite("#{dir}/minitest_spec_suite.rb") || raise("MiniTest suite Failed")
|
32
|
+
end
|
33
|
+
|
34
|
+
def run_suite(path)
|
35
|
+
# From http://www.eglug.org/node/946
|
36
|
+
bash.execute "exec 3>&1", :out => STDOUT, :err => STDERR
|
37
|
+
bash.execute "ruby -W #{path} 2>&1 >&3 3>&- | grep -v 'warning: useless use of' 3>&-; STATUS=${PIPESTATUS[0]}", :out => STDOUT, :err => STDERR
|
38
|
+
status = bash.execute("echo $STATUS")[0].to_s.strip.to_i
|
39
|
+
bash.execute "exec 3>&-", :out => STDOUT, :err => STDERR
|
40
|
+
return status == 0
|
41
|
+
end
|
42
|
+
|
43
|
+
def dir
|
44
|
+
File.dirname(__FILE__)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if $0 == __FILE__
|
49
|
+
ExampleSuite.new.run
|
50
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
require File.expand_path("#{File.dirname(__FILE__)}/spec_helper")
|
2
|
+
|
3
|
+
class Alpha
|
4
|
+
def bob
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
describe RR::SpyVerification do
|
9
|
+
attr_reader :subject, :recorded_calls
|
10
|
+
it_should_behave_like "Swapped Space"
|
11
|
+
before(:each) do
|
12
|
+
@subject = Object.new
|
13
|
+
extend RR::Adapters::RRMethods
|
14
|
+
stub(subject).foobar
|
15
|
+
@recorded_calls = RR::RecordedCalls.new([[subject, :foobar, [1, 2], nil]])
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#call" do
|
19
|
+
context "when a subject is expected to receive a method with exact arguments" do
|
20
|
+
context "when the number of times the subject received a method is not specified" do
|
21
|
+
context "when there is an exact match one time" do
|
22
|
+
it "verifies that the method with arguments was called once" do
|
23
|
+
subject.foobar(1, 2)
|
24
|
+
received(subject).foobar(1, 2).call
|
25
|
+
subject.foobar(1, 2)
|
26
|
+
lambda do
|
27
|
+
received(subject).foobar(1, 2).call
|
28
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context "when the number of times the subject received a method is specified" do
|
34
|
+
context "as one time" do
|
35
|
+
it "verifies that the method with arugments was called once" do
|
36
|
+
subject.foobar(1, 2)
|
37
|
+
received(subject).foobar(1, 2).once.call
|
38
|
+
subject.foobar(1, 2)
|
39
|
+
lambda do
|
40
|
+
received(subject).foobar(1, 2).once.call
|
41
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "as an at least matcher" do
|
46
|
+
it "verifies that the method with arugments was called at least the specified number of times" do
|
47
|
+
subject.foobar(1, 2)
|
48
|
+
lambda do
|
49
|
+
received(subject).foobar(1, 2).at_least(2).call
|
50
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
51
|
+
subject.foobar(1, 2)
|
52
|
+
received(subject).foobar(1, 2).at_least(2).call
|
53
|
+
subject.foobar(1, 2)
|
54
|
+
received(subject).foobar(1, 2).at_least(2).call
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
context "when a subject is expected to receive a method with wildcard arguments" do
|
61
|
+
context "when the number of times the subject received a method is not specified" do
|
62
|
+
context "when there is a wildcard match one time" do
|
63
|
+
it "verifies that the method with arguments was called once" do
|
64
|
+
subject.foobar(1, 2)
|
65
|
+
received(subject).foobar(1, is_a(Fixnum)).call
|
66
|
+
subject.foobar(1, 2)
|
67
|
+
lambda do
|
68
|
+
received(subject).foobar(1, is_a(Fixnum)).call
|
69
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context "when the number of times the subject received a method is specified" do
|
75
|
+
context "as one time" do
|
76
|
+
it "verifies that the method with arugments was called once" do
|
77
|
+
subject.foobar(1, 2)
|
78
|
+
received(subject).foobar(1, is_a(Fixnum)).once.call
|
79
|
+
subject.foobar(1, 2)
|
80
|
+
lambda do
|
81
|
+
received(subject).foobar(1, is_a(Fixnum)).once.call
|
82
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
context "as an at least matcher" do
|
87
|
+
it "verifies that the method with arugments was called at least the specified number of times" do
|
88
|
+
subject.foobar(1, is_a(Fixnum))
|
89
|
+
lambda do
|
90
|
+
received(subject).foobar(1, is_a(Fixnum)).at_least(2).call
|
91
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
92
|
+
subject.foobar(1, 2)
|
93
|
+
received(subject).foobar(1, is_a(Fixnum)).at_least(2).call
|
94
|
+
subject.foobar(1, 2)
|
95
|
+
received(subject).foobar(1, is_a(Fixnum)).at_least(2).call
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
context "when checking for ordering" do
|
102
|
+
it "when the order is incorrect; raises an error" do
|
103
|
+
subject.foobar(3, 4)
|
104
|
+
subject.foobar(1, 2)
|
105
|
+
lambda do
|
106
|
+
received(subject).foobar(1, 2).ordered.call
|
107
|
+
received(subject).foobar(3, 4).ordered.call
|
108
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::InvocationCountError)
|
109
|
+
end
|
110
|
+
|
111
|
+
it "when the order is correct; does not raise an error" do
|
112
|
+
subject.foobar(1, 2)
|
113
|
+
subject.foobar(1, 2)
|
114
|
+
subject.foobar(3, 4)
|
115
|
+
received(subject).foobar(1, 2).ordered.call
|
116
|
+
received(subject).foobar(3, 4).ordered.call
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
context "when the subject is expected where there is not DoubleInjection" do
|
121
|
+
it "raises a DoubleInjectionNotFoundError" do
|
122
|
+
::RR::Injections::DoubleInjection.exists?(subject, :method_that_does_not_exist).should be_false
|
123
|
+
lambda do
|
124
|
+
received(subject).method_that_does_not_exist.call
|
125
|
+
end.should raise_error(RR::Errors::SpyVerificationErrors::DoubleInjectionNotFoundError)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "#{File.dirname(__FILE__)}/spec_helper"
|
2
|
+
|
3
|
+
class TestUnitTestSuite
|
4
|
+
def run
|
5
|
+
require_tests
|
6
|
+
|
7
|
+
puts "Running Test::Unit Test Suite"
|
8
|
+
end
|
9
|
+
|
10
|
+
def require_tests
|
11
|
+
dir = File.dirname(__FILE__)
|
12
|
+
Dir["#{dir}/rr/test_unit/**/*_test.rb"].each do |file|
|
13
|
+
require File.expand_path(file)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
if $0 == __FILE__
|
19
|
+
TestUnitTestSuite.new.run
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,220 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mcmire-rr
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5.rc1
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Brian Takita
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jeweler
|
16
|
+
requirement: &70256693648920 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.8.3
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70256693648920
|
25
|
+
description: RR (Double Ruby) is a double framework that features a rich selection
|
26
|
+
of double techniques and a terse syntax. http://xunitpatterns.com/Test%20Double.html
|
27
|
+
email: brian@pivotallabs.com
|
28
|
+
executables: []
|
29
|
+
extensions: []
|
30
|
+
extra_rdoc_files:
|
31
|
+
- CHANGES
|
32
|
+
- README.rdoc
|
33
|
+
files:
|
34
|
+
- CHANGES
|
35
|
+
- Gemfile
|
36
|
+
- Gemfile.lock
|
37
|
+
- LICENSE
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- lib/rr.rb
|
42
|
+
- lib/rr/adapters/minitest.rb
|
43
|
+
- lib/rr/adapters/rr_methods.rb
|
44
|
+
- lib/rr/adapters/rspec.rb
|
45
|
+
- lib/rr/adapters/rspec2.rb
|
46
|
+
- lib/rr/adapters/test_unit.rb
|
47
|
+
- lib/rr/blank_slate.rb
|
48
|
+
- lib/rr/class_instance_method_defined.rb
|
49
|
+
- lib/rr/double.rb
|
50
|
+
- lib/rr/double_definitions/child_double_definition_create.rb
|
51
|
+
- lib/rr/double_definitions/double_definition.rb
|
52
|
+
- lib/rr/double_definitions/double_definition_create.rb
|
53
|
+
- lib/rr/double_definitions/double_definition_create_blank_slate.rb
|
54
|
+
- lib/rr/double_definitions/double_injections/any_instance_of.rb
|
55
|
+
- lib/rr/double_definitions/double_injections/instance.rb
|
56
|
+
- lib/rr/double_definitions/strategies/double_injection/any_instance_of.rb
|
57
|
+
- lib/rr/double_definitions/strategies/double_injection/double_injection_strategy.rb
|
58
|
+
- lib/rr/double_definitions/strategies/double_injection/instance.rb
|
59
|
+
- lib/rr/double_definitions/strategies/implementation/implementation_strategy.rb
|
60
|
+
- lib/rr/double_definitions/strategies/implementation/proxy.rb
|
61
|
+
- lib/rr/double_definitions/strategies/implementation/reimplementation.rb
|
62
|
+
- lib/rr/double_definitions/strategies/implementation/strongly_typed_reimplementation.rb
|
63
|
+
- lib/rr/double_definitions/strategies/strategy.rb
|
64
|
+
- lib/rr/double_definitions/strategies/strategy_methods.rb
|
65
|
+
- lib/rr/double_definitions/strategies/verification/dont_allow.rb
|
66
|
+
- lib/rr/double_definitions/strategies/verification/mock.rb
|
67
|
+
- lib/rr/double_definitions/strategies/verification/stub.rb
|
68
|
+
- lib/rr/double_definitions/strategies/verification/verification_strategy.rb
|
69
|
+
- lib/rr/double_matches.rb
|
70
|
+
- lib/rr/errors/argument_equality_error.rb
|
71
|
+
- lib/rr/errors/double_definition_error.rb
|
72
|
+
- lib/rr/errors/double_not_found_error.rb
|
73
|
+
- lib/rr/errors/double_order_error.rb
|
74
|
+
- lib/rr/errors/rr_error.rb
|
75
|
+
- lib/rr/errors/spy_verification_errors/double_injection_not_found_error.rb
|
76
|
+
- lib/rr/errors/spy_verification_errors/invocation_count_error.rb
|
77
|
+
- lib/rr/errors/spy_verification_errors/spy_verification_error.rb
|
78
|
+
- lib/rr/errors/subject_does_not_implement_method_error.rb
|
79
|
+
- lib/rr/errors/subject_has_different_arity_error.rb
|
80
|
+
- lib/rr/errors/times_called_error.rb
|
81
|
+
- lib/rr/expectations/any_argument_expectation.rb
|
82
|
+
- lib/rr/expectations/argument_equality_expectation.rb
|
83
|
+
- lib/rr/expectations/times_called_expectation.rb
|
84
|
+
- lib/rr/hash_with_object_id_key.rb
|
85
|
+
- lib/rr/injections/double_injection.rb
|
86
|
+
- lib/rr/injections/injection.rb
|
87
|
+
- lib/rr/injections/method_missing_injection.rb
|
88
|
+
- lib/rr/injections/singleton_method_added_injection.rb
|
89
|
+
- lib/rr/method_dispatches/base_method_dispatch.rb
|
90
|
+
- lib/rr/method_dispatches/method_dispatch.rb
|
91
|
+
- lib/rr/method_dispatches/method_missing_dispatch.rb
|
92
|
+
- lib/rr/proc_from_block.rb
|
93
|
+
- lib/rr/recorded_calls.rb
|
94
|
+
- lib/rr/space.rb
|
95
|
+
- lib/rr/spy_verification.rb
|
96
|
+
- lib/rr/spy_verification_proxy.rb
|
97
|
+
- lib/rr/times_called_matchers/any_times_matcher.rb
|
98
|
+
- lib/rr/times_called_matchers/at_least_matcher.rb
|
99
|
+
- lib/rr/times_called_matchers/at_most_matcher.rb
|
100
|
+
- lib/rr/times_called_matchers/integer_matcher.rb
|
101
|
+
- lib/rr/times_called_matchers/never_matcher.rb
|
102
|
+
- lib/rr/times_called_matchers/non_terminal.rb
|
103
|
+
- lib/rr/times_called_matchers/proc_matcher.rb
|
104
|
+
- lib/rr/times_called_matchers/range_matcher.rb
|
105
|
+
- lib/rr/times_called_matchers/terminal.rb
|
106
|
+
- lib/rr/times_called_matchers/times_called_matcher.rb
|
107
|
+
- lib/rr/wildcard_matchers.rb
|
108
|
+
- lib/rr/wildcard_matchers/anything.rb
|
109
|
+
- lib/rr/wildcard_matchers/boolean.rb
|
110
|
+
- lib/rr/wildcard_matchers/duck_type.rb
|
111
|
+
- lib/rr/wildcard_matchers/hash_including.rb
|
112
|
+
- lib/rr/wildcard_matchers/is_a.rb
|
113
|
+
- lib/rr/wildcard_matchers/numeric.rb
|
114
|
+
- lib/rr/wildcard_matchers/range.rb
|
115
|
+
- lib/rr/wildcard_matchers/regexp.rb
|
116
|
+
- lib/rr/wildcard_matchers/satisfy.rb
|
117
|
+
- spec/api/any_instance_of/all_instances_of_spec.rb
|
118
|
+
- spec/api/any_instance_of/any_instance_of_spec.rb
|
119
|
+
- spec/api/any_instance_of/instance_of_spec.rb
|
120
|
+
- spec/api/dont_allow/dont_allow_after_stub_spec.rb
|
121
|
+
- spec/api/mock/mock_spec.rb
|
122
|
+
- spec/api/proxy/proxy_spec.rb
|
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_helper.rb
|
185
|
+
- spec/spec_suite.rb
|
186
|
+
- spec/spy_verification_spec.rb
|
187
|
+
- spec/test_unit_spec_suite.rb
|
188
|
+
homepage: http://pivotallabs.com
|
189
|
+
licenses: []
|
190
|
+
post_install_message:
|
191
|
+
rdoc_options:
|
192
|
+
- --main
|
193
|
+
- README.rdoc
|
194
|
+
- --inline-source
|
195
|
+
- --line-numbers
|
196
|
+
require_paths:
|
197
|
+
- lib
|
198
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
199
|
+
none: false
|
200
|
+
requirements:
|
201
|
+
- - ! '>='
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
|
+
none: false
|
206
|
+
requirements:
|
207
|
+
- - ! '>'
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: 1.3.1
|
210
|
+
requirements: []
|
211
|
+
rubyforge_project:
|
212
|
+
rubygems_version: 1.8.11
|
213
|
+
signing_key:
|
214
|
+
specification_version: 3
|
215
|
+
summary: RR (Double Ruby) is a double framework that features a rich selection of
|
216
|
+
double techniques and a terse syntax. http://xunitpatterns.com/Test%20Double.html
|
217
|
+
test_files:
|
218
|
+
- spec/proc_from_block_spec.rb
|
219
|
+
- spec/rr_spec.rb
|
220
|
+
- spec/spy_verification_spec.rb
|