flexmock 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -1
- data/README +1 -1
- data/Rakefile +2 -2
- data/TAGS +786 -0
- data/doc/GoogleExample.rdoc +0 -0
- data/doc/releases/flexmock-0.5.0.rdoc +0 -0
- data/doc/releases/flexmock-0.6.0.rdoc +0 -0
- data/lib/flexmock/argument_matchers.rb +0 -0
- data/lib/flexmock/argument_types.rb +0 -0
- data/lib/flexmock/base.rb +0 -0
- data/lib/flexmock/composite.rb +0 -0
- data/lib/flexmock/core.rb +0 -0
- data/lib/flexmock/core_class_methods.rb +0 -0
- data/lib/flexmock/default_framework_adapter.rb +0 -0
- data/lib/flexmock/expectation.rb +0 -0
- data/lib/flexmock/expectation_director.rb +4 -1
- data/lib/flexmock/mock_container.rb +0 -0
- data/lib/flexmock/noop.rb +0 -0
- data/lib/flexmock/partial_mock.rb +0 -0
- data/lib/flexmock/rails/view_mocking.rb +2 -1
- data/lib/flexmock/recorder.rb +0 -0
- data/lib/flexmock/rspec.rb +0 -0
- data/lib/flexmock/test_unit.rb +0 -0
- data/lib/flexmock/test_unit_integration.rb +0 -0
- data/lib/flexmock/validators.rb +0 -0
- data/test/rspec_integration/integration_spec.rb +0 -0
- data/test/test_container_methods.rb +0 -0
- data/test/test_default_framework_adapter.rb +0 -0
- data/test/test_extended_should_receive.rb +0 -0
- data/test/test_new_instances.rb +0 -0
- data/test/test_rails_view_stub.rb +53 -2
- data/test/test_should_receive.rb +11 -0
- data/test/test_unit_integration/test_auto_test_unit.rb +0 -0
- metadata +4 -3
data/CHANGES
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
= Changes for FlexMock
|
2
2
|
|
3
|
-
==
|
3
|
+
== Version 0.8.2
|
4
4
|
|
5
|
+
* Added workaround for compatibility issues with RSpec on Rails.
|
6
|
+
|
7
|
+
== Version 0.8.1
|
8
|
+
|
9
|
+
* Additional fix for Rails 2.0.2
|
5
10
|
* Added Joe O'Brien's patch to allow view stubbing in Rails 2.0
|
6
11
|
* Added Evan Phoenix's patch to remove allocate from default
|
7
12
|
allocators in new_instances (for Rubinius compatibility).
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ require 'rake/contrib/rubyforgepublisher'
|
|
19
19
|
CLEAN.include('*.tmp')
|
20
20
|
CLOBBER.include("html", 'pkg')
|
21
21
|
|
22
|
-
PKG_VERSION = '0.8.
|
22
|
+
PKG_VERSION = '0.8.3'
|
23
23
|
|
24
24
|
PKG_FILES = FileList[
|
25
25
|
'[A-Z]*',
|
@@ -71,7 +71,7 @@ begin
|
|
71
71
|
|
72
72
|
Rcov::RcovTask.new do |t|
|
73
73
|
t.libs << "test"
|
74
|
-
t.rcov_opts = ['-xRakefile', '-xrakefile', '-xpublish.rf', '--text-report']
|
74
|
+
t.rcov_opts = ['-xRakefile', '-xrakefile', '-xpublish.rf', '-x/Lib*', '--text-report', '--sort', 'coverage']
|
75
75
|
t.test_files = FileList['test/test*.rb']
|
76
76
|
t.verbose = true
|
77
77
|
end
|
data/TAGS
ADDED
@@ -0,0 +1,786 @@
|
|
1
|
+
|
2
|
+
doc/jamis.rb,43
|
3
|
+
module RDocRDoc1,0
|
4
|
+
module PagePage2,12
|
5
|
+
|
6
|
+
install.rb,29
|
7
|
+
def indir(newdir)indir7,68
|
8
|
+
|
9
|
+
lib/flexmock/argument_matchers.rb,424
|
10
|
+
class FlexMockFlexMock14,338
|
11
|
+
class AnyMatcherAnyMatcher17,445
|
12
|
+
def ===(target)===18,464
|
13
|
+
def inspectinspect21,503
|
14
|
+
class EqualMatcherEqualMatcher28,655
|
15
|
+
def initialize(obj)initialize29,676
|
16
|
+
def ===(target)===32,725
|
17
|
+
def inspectinspect35,774
|
18
|
+
class ProcMatcherProcMatcher44,985
|
19
|
+
def initialize(&block)initialize45,1005
|
20
|
+
def ===(target)===48,1061
|
21
|
+
def inspectinspect51,1115
|
22
|
+
|
23
|
+
lib/flexmock/argument_types.rb,154
|
24
|
+
class FlexMockFlexMock14,350
|
25
|
+
module ArgumentTypesArgumentTypes21,643
|
26
|
+
def anyany23,726
|
27
|
+
def eq(obj)eq29,853
|
28
|
+
def on(&block)on36,1053
|
29
|
+
|
30
|
+
lib/flexmock/base.rb,0
|
31
|
+
|
32
|
+
lib/flexmock/composite.rb,30
|
33
|
+
class FlexMockFlexMock8,133
|
34
|
+
|
35
|
+
lib/flexmock/core.rb,900
|
36
|
+
class FlexMockFlexMock46,1290
|
37
|
+
def initialize(name="unknown", container=nil)initialize55,1560
|
38
|
+
def inspectinspect65,1854
|
39
|
+
def flexmock_verifyflexmock_verify71,2014
|
40
|
+
def flexmock_teardownflexmock_teardown82,2255
|
41
|
+
def should_ignore_missingshould_ignore_missing86,2335
|
42
|
+
def by_defaultby_default91,2447
|
43
|
+
def method_missing(sym, *args, &block)method_missing97,2576
|
44
|
+
def respond_to?(sym, *args)respond_to?114,3048
|
45
|
+
def flexmock_find_expectation(method_name, *args) # :nodoc:flexmock_find_expectation119,3204
|
46
|
+
def flexmock_expectations_for(method_name) # :nodoc:flexmock_expectations_for125,3409
|
47
|
+
def method(sym)method130,3568
|
48
|
+
def should_receive(*args)should_receive159,4607
|
49
|
+
def should_expectshould_expect182,5352
|
50
|
+
def flexmock_wrap(&block)flexmock_wrap190,5542
|
51
|
+
def override_existing_method(sym)override_existing_method204,6101
|
52
|
+
def sclasssclass213,6321
|
53
|
+
|
54
|
+
lib/flexmock/core_class_methods.rb,289
|
55
|
+
class FlexMockFlexMock15,371
|
56
|
+
def use(*names)use39,1312
|
57
|
+
def format_args(sym, args) # :nodoc:format_args53,1710
|
58
|
+
def check(msg, &block) # :nodoc:check63,2011
|
59
|
+
class UseContainerUseContainer70,2186
|
60
|
+
def initializeinitialize75,2276
|
61
|
+
def passed?passed?79,2337
|
62
|
+
|
63
|
+
lib/flexmock/default_framework_adapter.rb,387
|
64
|
+
class FlexMockFlexMock14,337
|
65
|
+
class DefaultFrameworkAdapterDefaultFrameworkAdapter15,352
|
66
|
+
def assert_block(msg, &block)assert_block16,384
|
67
|
+
def assert_equal(a, b, msg=nil)assert_equal22,497
|
68
|
+
def passed?(test_case)passed?26,597
|
69
|
+
class AssertionFailedError < StandardError; endAssertionFailedError30,657
|
70
|
+
def assertion_failed_errorassertion_failed_error31,709
|
71
|
+
|
72
|
+
lib/flexmock/deprecated_methods.rb,340
|
73
|
+
class ModuleModule13,314
|
74
|
+
def flexmock_deprecate(*method_names)flexmock_deprecate14,327
|
75
|
+
class FlexMockFlexMock33,827
|
76
|
+
def mock_handle(sym, expected_count=nil, &block) # :nodoc:mock_handle40,1125
|
77
|
+
class PartialMockProxyPartialMockProxy47,1415
|
78
|
+
def any_instance(&block)any_instance53,1572
|
79
|
+
module OrderingOrdering59,1720
|
80
|
+
|
81
|
+
lib/flexmock/errors.rb,137
|
82
|
+
class FlexMockFlexMock14,338
|
83
|
+
class UsageError < ::RuntimeErrorUsageError17,406
|
84
|
+
class MockError < ::RuntimeErrorMockError20,449
|
85
|
+
|
86
|
+
lib/flexmock/expectation.rb,2060
|
87
|
+
class FlexMockFlexMock14,337
|
88
|
+
class ExpectationExpectation28,872
|
89
|
+
def initialize(mock, sym)initialize34,1018
|
90
|
+
def to_sto_s49,1380
|
91
|
+
def verify_call(*args)verify_call55,1562
|
92
|
+
def _return_value(args) # :nodoc:_return_value64,1782
|
93
|
+
def return_value(args)return_value69,1922
|
94
|
+
def perform_yielding(args)perform_yielding83,2253
|
95
|
+
def eligible?eligible?99,2839
|
96
|
+
def call_count_constrained?call_count_constrained?104,2988
|
97
|
+
def validate_ordervalidate_order109,3098
|
98
|
+
def flexmock_verifyflexmock_verify121,3473
|
99
|
+
def match_args(args)match_args129,3670
|
100
|
+
def match_arg(expected, actual)match_arg138,4016
|
101
|
+
def with(*args)with145,4245
|
102
|
+
def with_no_argswith_no_args151,4379
|
103
|
+
def with_any_argswith_any_args157,4512
|
104
|
+
def and_return(*args, &block)and_return188,5521
|
105
|
+
def and_return_undefinedand_return_undefined212,6239
|
106
|
+
def and_yield(*yield_values)and_yield228,6808
|
107
|
+
def and_raise(exception, *args)and_raise252,7571
|
108
|
+
def and_throw(sym, value=nil)and_throw266,7936
|
109
|
+
def zero_or_more_timeszero_or_more_times272,8111
|
110
|
+
def times(limit)times279,8334
|
111
|
+
def nevernever288,8681
|
112
|
+
def onceonce295,8896
|
113
|
+
def twicetwice302,9111
|
114
|
+
def at_leastat_least314,9437
|
115
|
+
def at_mostat_most327,9816
|
116
|
+
def ordered(group_name=nil)ordered356,11085
|
117
|
+
def globallyglobally368,11465
|
118
|
+
def define_ordered(group_name, ordering)define_ordered374,11580
|
119
|
+
def by_defaultby_default388,12078
|
120
|
+
class CompositeExpectationCompositeExpectation399,12485
|
121
|
+
def initializeinitialize402,12559
|
122
|
+
def add(expectation)add407,12655
|
123
|
+
def method_missing(sym, *args, &block)method_missing412,12796
|
124
|
+
def order_numberorder_number423,13175
|
125
|
+
def mockmock428,13285
|
126
|
+
def should_receive(*args, &block)should_receive434,13453
|
127
|
+
def to_sto_s439,13599
|
128
|
+
class ExpectationRecorderExpectationRecorder453,14057
|
129
|
+
def initializeinitialize456,14117
|
130
|
+
def method_missing(sym, *args, &block)method_missing461,14228
|
131
|
+
def apply(mock)apply469,14504
|
132
|
+
|
133
|
+
lib/flexmock/expectation_director.rb,483
|
134
|
+
class FlexMockFlexMock15,363
|
135
|
+
class ExpectationDirectorExpectationDirector20,574
|
136
|
+
def initialize(sym)initialize23,658
|
137
|
+
def call(*args)call38,1207
|
138
|
+
def <<(expectation)<<46,1460
|
139
|
+
def find_expectation(*args) # :nodoc:find_expectation51,1584
|
140
|
+
def flexmock_verify # :nodoc:flexmock_verify59,1909
|
141
|
+
def defaultify_expectation(exp) # :nodoc:defaultify_expectation66,2120
|
142
|
+
def find_expectation_in(expectations, *args)find_expectation_in78,2401
|
143
|
+
|
144
|
+
lib/flexmock/mini_unit.rb,393
|
145
|
+
class FlexMockFlexMock15,357
|
146
|
+
module TestCaseTestCase29,918
|
147
|
+
def teardownteardown35,1093
|
148
|
+
class MiniUnitFrameworkAdapterMiniUnitFrameworkAdapter45,1302
|
149
|
+
def assertion_failed_errorassertion_failed_error47,1364
|
150
|
+
def passed?(test_case)passed?51,1426
|
151
|
+
module MiniMini59,1536
|
152
|
+
class TestTest60,1548
|
153
|
+
class TestCaseTestCase61,1561
|
154
|
+
def teardownteardown70,1876
|
155
|
+
|
156
|
+
lib/flexmock/mock_container.rb,882
|
157
|
+
class FlexMockFlexMock15,371
|
158
|
+
module MockContainerMockContainer25,777
|
159
|
+
def flexmock_teardownflexmock_teardown30,961
|
160
|
+
def flexmock_verifyflexmock_verify37,1152
|
161
|
+
def flexmock_closeflexmock_close46,1447
|
162
|
+
def flexmock(*args)flexmock115,4717
|
163
|
+
def flexmock_remember(mocking_object)flexmock_remember157,5993
|
164
|
+
class MockContainerHelperMockContainerHelper173,6643
|
165
|
+
def next_idnext_id177,6752
|
166
|
+
def parse_should_args(mock, args, &block) # :nodoc:parse_should_args190,7225
|
167
|
+
def add_model_methods(mock, model_class, id)add_model_methods208,7738
|
168
|
+
def make_partial_proxy(container, obj, name, safe_mode)make_partial_proxy232,8597
|
169
|
+
def build_demeter_chain(mock, arg, &block)build_demeter_chain277,10450
|
170
|
+
def check_proper_mock(mock, method_name)check_proper_mock302,11301
|
171
|
+
def check_method_names(names)check_method_names312,11708
|
172
|
+
|
173
|
+
lib/flexmock/noop.rb,0
|
174
|
+
|
175
|
+
lib/flexmock/ordering.rb,399
|
176
|
+
class FlexMockFlexMock12,312
|
177
|
+
module OrderingOrdering20,684
|
178
|
+
def flexmock_allocate_orderflexmock_allocate_order23,751
|
179
|
+
def flexmock_groupsflexmock_groups29,914
|
180
|
+
def flexmock_current_orderflexmock_current_order34,1022
|
181
|
+
def flexmock_current_order=(value)flexmock_current_order=39,1145
|
182
|
+
def flexmock_validate_order(method_name, order_number)flexmock_validate_order43,1231
|
183
|
+
|
184
|
+
lib/flexmock/partial_mock.rb,1380
|
185
|
+
class FlexMockFlexMock14,337
|
186
|
+
class PartialMockProxyPartialMockProxy26,968
|
187
|
+
def initialize(obj, mock, safe_mode)initialize40,1310
|
188
|
+
def flexmock_getflexmock_get56,1722
|
189
|
+
def should_receive(*args)should_receive80,2662
|
190
|
+
def add_mock_method(obj, method_name)add_mock_method91,2940
|
191
|
+
def new_instances(*allocators, &block)new_instances119,3994
|
192
|
+
def invoke_original(method, args)invoke_original140,4796
|
193
|
+
def flexmock_verifyflexmock_verify148,5090
|
194
|
+
def flexmock_teardownflexmock_teardown153,5226
|
195
|
+
def flexmock_containerflexmock_container165,5564
|
196
|
+
def flexmock_container=(container)flexmock_container=171,5759
|
197
|
+
def flexmock_expectations_for(method_name)flexmock_expectations_for175,5875
|
198
|
+
def sclasssclass182,6036
|
199
|
+
def singleton?(method_name)singleton?188,6177
|
200
|
+
def hide_existing_method(method_name)hide_existing_method198,6639
|
201
|
+
def stow_existing_definition(method_name)stow_existing_definition205,6856
|
202
|
+
def create_alias_for_existing_method(method_name)create_alias_for_existing_method225,7573
|
203
|
+
def define_proxy_method(method_name)define_proxy_method243,8092
|
204
|
+
def restore_original_definition(method_name)restore_original_definition264,8792
|
205
|
+
def remove_current_method(method_name)remove_current_method276,9156
|
206
|
+
def detached?detached?281,9317
|
207
|
+
def new_name(old_name)new_name286,9425
|
208
|
+
|
209
|
+
lib/flexmock/rails/view_mocking.rb,509
|
210
|
+
class FlexMockFlexMock3,20
|
211
|
+
module MockContainerMockContainer4,35
|
212
|
+
def rails_versionrails_version6,59
|
213
|
+
def should_render_view(template_name=nil)should_render_view25,684
|
214
|
+
def should_render_view_prior_version_124(template_name) # :nodoc:should_render_view_prior_version_12439,1142
|
215
|
+
def should_render_view_after_version_124(template_name)should_render_view_after_version_12459,1892
|
216
|
+
def should_render_view_after_version_202(template_name)should_render_view_after_version_20282,2781
|
217
|
+
|
218
|
+
lib/flexmock/rails.rb,0
|
219
|
+
|
220
|
+
lib/flexmock/recorder.rb,271
|
221
|
+
class FlexMockFlexMock14,347
|
222
|
+
class RecorderRecorder20,523
|
223
|
+
def initialize(mock)initialize24,629
|
224
|
+
def should_be_strict(is_strict=true)should_be_strict48,1561
|
225
|
+
def strict?strict?53,1675
|
226
|
+
def method_missing(sym, *args, &block)method_missing59,1805
|
227
|
+
|
228
|
+
lib/flexmock/rspec.rb,341
|
229
|
+
class FlexMockFlexMock14,337
|
230
|
+
class RSpecFrameworkAdapterRSpecFrameworkAdapter16,355
|
231
|
+
def assert_block(msg, &block)assert_block17,385
|
232
|
+
def assert_equal(a, b, msg=nil)assert_equal21,481
|
233
|
+
class AssertionFailedError < StandardError; endAssertionFailedError26,644
|
234
|
+
def assertion_failed_errorassertion_failed_error27,696
|
235
|
+
|
236
|
+
lib/flexmock/test_unit.rb,120
|
237
|
+
module TestTest14,354
|
238
|
+
module UnitUnit15,366
|
239
|
+
class TestCaseTestCase16,380
|
240
|
+
def teardownteardown25,695
|
241
|
+
|
242
|
+
lib/flexmock/test_unit_integration.rb,270
|
243
|
+
class FlexMockFlexMock15,357
|
244
|
+
module TestCaseTestCase29,917
|
245
|
+
def teardownteardown35,1092
|
246
|
+
class TestUnitFrameworkAdapterTestUnitFrameworkAdapter45,1301
|
247
|
+
def assertion_failed_errorassertion_failed_error47,1369
|
248
|
+
def passed?(test_case)passed?51,1448
|
249
|
+
|
250
|
+
lib/flexmock/undefined.rb,288
|
251
|
+
class FlexMockFlexMock12,312
|
252
|
+
class UndefinedUndefined17,483
|
253
|
+
def method_missing(sym, *args, &block)method_missing18,501
|
254
|
+
def to_sto_s22,564
|
255
|
+
def inspectinspect26,606
|
256
|
+
def cloneclone30,642
|
257
|
+
def coerce(other)coerce34,680
|
258
|
+
def self.undefinedundefined43,885
|
259
|
+
|
260
|
+
lib/flexmock/validators.rb,545
|
261
|
+
class FlexMockFlexMock14,337
|
262
|
+
class CountValidatorCountValidator19,473
|
263
|
+
def initialize(expectation, limit)initialize20,496
|
264
|
+
def eligible?(n)eligible?28,752
|
265
|
+
class ExactCountValidator < CountValidatorExactCountValidator36,917
|
266
|
+
def validate(n)validate39,1041
|
267
|
+
class AtLeastCountValidator < CountValidatorAtLeastCountValidator48,1332
|
268
|
+
def validate(n)validate51,1458
|
269
|
+
def eligible?(n)eligible?61,1875
|
270
|
+
class AtMostCountValidator < CountValidatorAtMostCountValidator69,2058
|
271
|
+
def validate(n)validate71,2173
|
272
|
+
|
273
|
+
lib/flexmock.rb,0
|
274
|
+
|
275
|
+
test/asserts.rb,139
|
276
|
+
class FlexMockFlexMock12,312
|
277
|
+
module FailureAssertionFailureAssertion15,368
|
278
|
+
def assert_failure(message=nil)assert_failure21,567
|
279
|
+
|
280
|
+
test/frameworks/mini_unit_test.rb,407
|
281
|
+
class FlexmockMiniUnitTest < Mini::Test::TestCaseFlexmockMiniUnitTest20,432
|
282
|
+
def test_can_create_mockstest_can_create_mocks22,509
|
283
|
+
def test_can_use_argument_matcherstest_can_use_argument_matchers28,609
|
284
|
+
class FlexmockMinitUnitCleanupTest < Mini::Test::TestCaseFlexmockMinitUnitCleanupTest35,730
|
285
|
+
def teardownteardown37,789
|
286
|
+
def test_mocks_are_auto_verifiedtest_mocks_are_auto_verified50,1066
|
287
|
+
|
288
|
+
test/frameworks/rspec_spec.rb,0
|
289
|
+
|
290
|
+
test/frameworks/test_unit_test.rb,431
|
291
|
+
class TestFlexmockTestUnit < Test::Unit::TestCaseTestFlexmockTestUnit18,412
|
292
|
+
def test_can_create_mockstest_can_create_mocks20,489
|
293
|
+
def test_can_use_argument_matcherstest_can_use_argument_matchers26,589
|
294
|
+
class TestFlexmockTestUnitCleanup < Test::Unit::TestCaseTestFlexmockTestUnitCleanup33,710
|
295
|
+
def teardownteardown35,768
|
296
|
+
def test_should_fail__mocks_are_auto_verifiedtest_should_fail__mocks_are_auto_verified45,1004
|
297
|
+
|
298
|
+
test/redirect_error.rb,114
|
299
|
+
class FlexMockFlexMock3,20
|
300
|
+
module RedirectErrorRedirectError4,35
|
301
|
+
def redirect_errorredirect_error5,58
|
302
|
+
|
303
|
+
test/test_aliasing.rb,522
|
304
|
+
class FlexMockFlexMock6,61
|
305
|
+
module StubsAndExpectsStubsAndExpects7,76
|
306
|
+
def expects(*args)expects8,101
|
307
|
+
def stubs(*args)stubs13,247
|
308
|
+
module MockContainerMockContainer18,311
|
309
|
+
class PartialMockProxyPartialMockProxy25,420
|
310
|
+
class AliasingTest < Test::Unit::TestCaseAliasingTest31,523
|
311
|
+
def test_mockingtest_mocking34,595
|
312
|
+
def test_once_mockingtest_once_mocking40,756
|
313
|
+
def test_twice_mockingtest_twice_mocking44,854
|
314
|
+
def test_stubbingtest_stubbing49,1033
|
315
|
+
def test_partialtest_partial54,1158
|
316
|
+
|
317
|
+
test/test_container_methods.rb,1111
|
318
|
+
class TestFlexmockContainerMethods < Test::Unit::TestCaseTestFlexmockContainerMethods16,410
|
319
|
+
def test_simple_mock_creationtest_simple_mock_creation19,498
|
320
|
+
def test_mock_with_nametest_mock_with_name25,639
|
321
|
+
def test_mock_with_symbol_nametest_mock_with_symbol_name32,848
|
322
|
+
def test_mock_with_hashtest_mock_with_hash39,1063
|
323
|
+
def test_mock_with_name_and_hashtest_mock_with_name_and_hash45,1208
|
324
|
+
def test_mock_with_name_hash_and_blocktest_mock_with_name_hash_and_block54,1516
|
325
|
+
def test_basic_stubtest_basic_stub62,1739
|
326
|
+
def test_basic_stub_with_nametest_basic_stub_with_name69,1901
|
327
|
+
def test_stub_with_quick_definitionstest_stub_with_quick_definitions77,2161
|
328
|
+
def test_stub_with_name_quick_definitionstest_stub_with_name_quick_definitions83,2305
|
329
|
+
def test_stubs_are_auto_verifiedtest_stubs_are_auto_verified92,2629
|
330
|
+
def test_stubbing_a_stringtest_stubbing_a_string99,2831
|
331
|
+
def test_multiple_stubs_work_with_same_partial_mock_proxytest_multiple_stubs_work_with_same_partial_mock_proxy105,2958
|
332
|
+
def test_multiple_stubs_layer_behaviortest_multiple_stubs_layer_behavior112,3130
|
333
|
+
|
334
|
+
test/test_default_framework_adapter.rb,475
|
335
|
+
class TestFlexmockDefaultFrameworkAdapter < Test::Unit::TestCaseTestFlexmockDefaultFrameworkAdapter15,352
|
336
|
+
def setupsetup16,417
|
337
|
+
def test_assert_block_raises_exception test_assert_block_raises_exception20,489
|
338
|
+
def test_assert_block_doesnt_raise_exceptiontest_assert_block_doesnt_raise_exception26,684
|
339
|
+
def test_assert_equal_doesnt_raise_exceptiontest_assert_equal_doesnt_raise_exception30,794
|
340
|
+
def test_assert_equal_can_failtest_assert_equal_can_fail34,900
|
341
|
+
|
342
|
+
test/test_demeter_mocking.rb,1569
|
343
|
+
class TestDemeterMocking < Test::Unit::TestCaseTestDemeterMocking7,84
|
344
|
+
def test_demeter_mockingtest_demeter_mocking11,199
|
345
|
+
def test_demeter_mocking_with_operatorstest_demeter_mocking_with_operators19,426
|
346
|
+
def test_demeter_mocking_with_multiple_operatorstest_demeter_mocking_with_multiple_operators28,715
|
347
|
+
def test_multiple_demeter_mocks_on_same_branch_is_oktest_multiple_demeter_mocks_on_same_branch_is_ok34,876
|
348
|
+
def test_multi_level_deep_demeter_violationtest_multi_level_deep_demeter_violation42,1168
|
349
|
+
def test_final_method_can_have_multiple_expecationstest_final_method_can_have_multiple_expecations48,1353
|
350
|
+
def test_conflicting_mock_declarations_raises_an_errortest_conflicting_mock_declarations_raises_an_error56,1644
|
351
|
+
def test_conflicting_mock_declarations_in_reverse_order_does_not_raise_errortest_conflicting_mock_declarations_in_reverse_order_does_not_raise_error68,2049
|
352
|
+
def test_preestablishing_existing_mock_is_oktest_preestablishing_existing_mock_is_ok78,2393
|
353
|
+
def test_quick_defs_can_use_demeter_mockingtest_quick_defs_can_use_demeter_mocking86,2656
|
354
|
+
def test_quick_defs_can_use_demeter_mocking_twotest_quick_defs_can_use_demeter_mocking_two96,2965
|
355
|
+
def test_errors_on_ill_formed_method_namestest_errors_on_ill_formed_method_names103,3194
|
356
|
+
def test_no_errors_on_well_formed_method_namestest_no_errors_on_well_formed_method_names112,3448
|
357
|
+
def test_readme_example_1test_readme_example_1121,3666
|
358
|
+
def test_readme_example_2test_readme_example_2131,4040
|
359
|
+
def test_readme_example_3test_readme_example_3137,4241
|
360
|
+
|
361
|
+
test/test_deprecated_methods.rb,2237
|
362
|
+
class TestFlexMock < Test::Unit::TestCaseTestFlexMock17,420
|
363
|
+
def s(&block)s21,526
|
364
|
+
def setupsetup25,576
|
365
|
+
def test_handletest_handle29,624
|
366
|
+
def test_handle_no_blocktest_handle_no_block36,768
|
367
|
+
def test_called_with_blocktest_called_with_block42,898
|
368
|
+
def test_return_valuetest_return_value49,1096
|
369
|
+
def test_handle_missing_methodtest_handle_missing_method54,1201
|
370
|
+
def test_ignore_missing_methodtest_ignore_missing_method62,1431
|
371
|
+
def test_good_countstest_good_counts68,1562
|
372
|
+
def test_bad_countstest_bad_counts76,1701
|
373
|
+
def test_undetermined_countstest_undetermined_counts87,1918
|
374
|
+
def test_zero_countstest_zero_counts96,2063
|
375
|
+
def test_file_io_with_usetest_file_io_with_use105,2242
|
376
|
+
def count_lines(stream)count_lines113,2446
|
377
|
+
def test_usetest_use121,2564
|
378
|
+
def test_failures_during_usetest_failures_during_use130,2721
|
379
|
+
def test_sequential_valuestest_sequential_values140,2940
|
380
|
+
def test_respond_to_returns_false_for_non_handled_methodstest_respond_to_returns_false_for_non_handled_methods149,3174
|
381
|
+
def test_respond_to_returns_true_for_explicit_methodstest_respond_to_returns_true_for_explicit_methods153,3309
|
382
|
+
def test_respond_to_returns_true_for_missing_methods_when_ignoring_missingtest_respond_to_returns_true_for_missing_methods_when_ignoring_missing158,3468
|
383
|
+
def test_respond_to_returns_true_for_missing_methods_when_ignoring_missing_using_shouldtest_respond_to_returns_true_for_missing_methods_when_ignoring_missing_using_should163,3649
|
384
|
+
def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown168,3845
|
385
|
+
def test_method_returns_callable_proctest_method_returns_callable_proc174,3963
|
386
|
+
def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods183,4219
|
387
|
+
class TestDeprecatedOrderingMethods < Test::Unit::TestCaseTestDeprecatedOrderingMethods191,4446
|
388
|
+
def test_deprecated_ordering_methodstest_deprecated_ordering_methods195,4569
|
389
|
+
class TestAnyInstance < Test::Unit::TestCaseTestAnyInstance207,4965
|
390
|
+
class DogDog211,5074
|
391
|
+
def barkbark212,5086
|
392
|
+
def test_any_instance_still_works_for_backwards_compatibilitytest_any_instance_still_works_for_backwards_compatibility217,5126
|
393
|
+
|
394
|
+
test/test_examples_from_readme.rb,1207
|
395
|
+
class TemperatureSamplerTemperatureSampler15,352
|
396
|
+
def initialize(sensor)initialize16,377
|
397
|
+
def average_tempaverage_temp20,430
|
398
|
+
class TestTemperatureSampler < Test::Unit::TestCaseTestTemperatureSampler26,557
|
399
|
+
def test_tempurature_samplertest_tempurature_sampler29,639
|
400
|
+
class TestExamplesFromReadme < Test::Unit::TestCaseTestExamplesFromReadme38,918
|
401
|
+
def test_simple_return_valuestest_simple_return_values41,1000
|
402
|
+
def test_returning_an_undefined_valuetest_returning_an_undefined_value47,1140
|
403
|
+
def test_dbtest_db53,1280
|
404
|
+
def test_query_and_updatetest_query_and_update62,1510
|
405
|
+
def test_ordered_queriestest_ordered_queries71,1763
|
406
|
+
def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode89,2362
|
407
|
+
def test_build_xmltest_build_xml106,2894
|
408
|
+
def known_good_way_to_build_xml(rec)known_good_way_to_build_xml115,3149
|
409
|
+
def new_way_to_build_xml(rec)new_way_to_build_xml120,3219
|
410
|
+
def test_multiple_getstest_multiple_gets124,3307
|
411
|
+
def test_an_important_messagetest_an_important_message133,3552
|
412
|
+
class QuoteServiceQuoteService142,3782
|
413
|
+
class PortfolioPortfolio144,3809
|
414
|
+
def valuevalue145,3827
|
415
|
+
def test_portfolio_valuetest_portfolio_value150,3887
|
416
|
+
|
417
|
+
test/test_extended_should_receive.rb,809
|
418
|
+
module ExtendedShouldReceiveTestsExtendedShouldReceiveTests15,352
|
419
|
+
def test_accepts_expectation_hashtest_accepts_expectation_hash16,386
|
420
|
+
def test_accepts_list_of_methodstest_accepts_list_of_methods22,552
|
421
|
+
def test_contraints_apply_to_all_expectationstest_contraints_apply_to_all_expectations29,712
|
422
|
+
def test_count_contraints_apply_to_all_expectationstest_count_contraints_apply_to_all_expectations36,1001
|
423
|
+
def test_multiple_should_receives_are_allowedtest_multiple_should_receives_are_allowed42,1204
|
424
|
+
class TestExtendedShouldReceiveOnFullMocks < Test::Unit::TestCaseTestExtendedShouldReceiveOnFullMocks50,1421
|
425
|
+
def setupsetup54,1556
|
426
|
+
class TestExtendedShouldReceiveOnPartialMockProxies < Test::Unit::TestCaseTestExtendedShouldReceiveOnPartialMockProxies61,1626
|
427
|
+
def setupsetup65,1770
|
428
|
+
|
429
|
+
test/test_flexmodel.rb,528
|
430
|
+
class DummyModelDummyModel6,61
|
431
|
+
class ChildModel < DummyModelChildModel9,83
|
432
|
+
class TestFlexModel < Test::Unit::TestCaseTestFlexModel13,189
|
433
|
+
def test_initial_conditionstest_initial_conditions16,262
|
434
|
+
def test_classifying_mock_modelstest_classifying_mock_models28,663
|
435
|
+
def test_mock_models_have_different_idstest_mock_models_have_different_ids38,910
|
436
|
+
def test_mock_models_can_have_quick_defstest_mock_models_can_have_quick_defs44,1061
|
437
|
+
def test_mock_models_can_have_blockstest_mock_models_can_have_blocks49,1201
|
438
|
+
|
439
|
+
test/test_naming.rb,816
|
440
|
+
class TestNaming < Test::Unit::TestCaseTestNaming15,352
|
441
|
+
def test_nametest_name18,424
|
442
|
+
def test_name_in_no_handler_found_errortest_name_in_no_handler_found_error23,507
|
443
|
+
def test_name_in_received_count_errortest_name_in_received_count_error32,733
|
444
|
+
def test_naming_with_usetest_naming_with_use41,963
|
445
|
+
def test_naming_with_multiple_mocks_in_usetest_naming_with_multiple_mocks_in_use47,1080
|
446
|
+
def test_inspect_returns_reasonable_nametest_inspect_returns_reasonable_name54,1268
|
447
|
+
def test_mock_can_override_inspecttest_mock_can_override_inspect61,1452
|
448
|
+
class DummyDummy68,1655
|
449
|
+
def inspectinspect69,1669
|
450
|
+
def test_partial_mocks_use_original_inspecttest_partial_mocks_use_original_inspect74,1722
|
451
|
+
def test_partial_mocks_can_override_inspecttest_partial_mocks_can_override_inspect80,1886
|
452
|
+
|
453
|
+
test/test_new_instances.rb,2271
|
454
|
+
class TestNewInstances < Test::Unit::TestCaseTestNewInstances16,382
|
455
|
+
class DogDog20,494
|
456
|
+
def barkbark21,506
|
457
|
+
def wagwag24,539
|
458
|
+
def self.makemake27,571
|
459
|
+
class CatCat32,614
|
460
|
+
def initialize(name, &block)initialize34,648
|
461
|
+
class ConnectionConnection40,756
|
462
|
+
def initialize(*args)initialize41,775
|
463
|
+
def send(args)send44,843
|
464
|
+
def post(args)post47,887
|
465
|
+
def test_new_instances_allows_stubbing_of_existing_methodstest_new_instances_allows_stubbing_of_existing_methods52,938
|
466
|
+
def test_new_instances_stubs_still_have_existing_methodstest_new_instances_stubs_still_have_existing_methods60,1161
|
467
|
+
def test_new_instances_will_pass_args_to_newtest_new_instances_will_pass_args_to_new68,1376
|
468
|
+
def test_new_gets_block_after_restubbingtest_new_gets_block_after_restubbing81,1782
|
469
|
+
def test_new_instances_stub_verification_happens_on_teardowntest_new_instances_stub_verification_happens_on_teardown94,2107
|
470
|
+
def test_new_instances_reports_error_on_non_classestest_new_instances_reports_error_on_non_classes104,2470
|
471
|
+
def test_does_not_by_default_stub_objects_created_with_allocatetest_does_not_by_default_stub_objects_created_with_allocate114,2752
|
472
|
+
def test_can_explicitly_stub_objects_created_with_allocatetest_can_explicitly_stub_objects_created_with_allocate122,2982
|
473
|
+
def test_can_stub_objects_created_with_arbitrary_class_methodstest_can_stub_objects_created_with_arbitrary_class_methods130,3221
|
474
|
+
def test_stubbing_arbitrary_class_methods_leaves_new_alonetest_stubbing_arbitrary_class_methods_leaves_new_alone137,3446
|
475
|
+
def test_stubbing_new_and_allocate_doesnt_double_stub_objects_on_newtest_stubbing_new_and_allocate_doesnt_double_stub_objects_on_new144,3661
|
476
|
+
def test_blocks_on_new_do_not_have_stubs_installedtest_blocks_on_new_do_not_have_stubs_installed157,4116
|
477
|
+
def test_new_instances_accept_chained_expectationstest_new_instances_accept_chained_expectations171,4456
|
478
|
+
def test_fancy_use_of_chained_should_receivedtest_fancy_use_of_chained_should_received179,4728
|
479
|
+
def test_writable_accessorstest_writable_accessors184,4885
|
480
|
+
def test_ordering_can_be_specifiedtest_ordering_can_be_specified190,5032
|
481
|
+
def test_ordering_can_be_specified_in_groupstest_ordering_can_be_specified_in_groups198,5228
|
482
|
+
|
483
|
+
test/test_partial_mock.rb,4962
|
484
|
+
class TestStubbing < Test::Unit::TestCaseTestStubbing16,372
|
485
|
+
class DogDog19,446
|
486
|
+
def barkbark20,458
|
487
|
+
def Dog.createcreate23,491
|
488
|
+
class DogPlus < DogDogPlus28,540
|
489
|
+
def should_receiveshould_receive29,562
|
490
|
+
def new_instancesnew_instances32,611
|
491
|
+
def by_defaultby_default35,656
|
492
|
+
def test_stub_command_add_behavior_to_arbitrary_objectstest_stub_command_add_behavior_to_arbitrary_objects40,712
|
493
|
+
def test_stub_command_can_configure_via_blocktest_stub_command_can_configure_via_block46,898
|
494
|
+
def test_stubbed_methods_can_take_blockstest_stubbed_methods_can_take_blocks54,1097
|
495
|
+
def test_multiple_stubs_on_the_same_object_reuse_the_same_partial_mocktest_multiple_stubs_on_the_same_object_reuse_the_same_partial_mock61,1324
|
496
|
+
def test_multiple_methods_can_be_stubbedtest_multiple_methods_can_be_stubbed66,1473
|
497
|
+
def test_original_behavior_can_be_restoredtest_original_behavior_can_be_restored74,1727
|
498
|
+
def test_original_missing_behavior_can_be_restoredtest_original_missing_behavior_can_be_restored84,2064
|
499
|
+
def test_multiple_stubs_on_single_method_can_be_restored_missing_methodtest_multiple_stubs_on_single_method_can_be_restored_missing_method93,2343
|
500
|
+
def test_original_behavior_is_restored_when_multiple_methods_are_mockedtest_original_behavior_is_restored_when_multiple_methods_are_mocked104,2754
|
501
|
+
def test_original_behavior_is_restored_on_class_objectstest_original_behavior_is_restored_on_class_objects113,3083
|
502
|
+
def test_original_behavior_is_restored_on_singleton_methodstest_original_behavior_is_restored_on_singleton_methods120,3334
|
503
|
+
def obj.hi() :hello endhi122,3417
|
504
|
+
def test_original_behavior_is_restored_on_singleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_singleton_methods_with_multiple_stubs130,3613
|
505
|
+
def obj.hi(n) "hello#{n}" endhi132,3716
|
506
|
+
def test_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubs142,4037
|
507
|
+
def test_stubbing_file_shouldnt_break_writingtest_stubbing_file_shouldnt_break_writing158,4531
|
508
|
+
def test_original_behavior_is_restored_even_when_errorstest_original_behavior_is_restored_even_when_errors174,4970
|
509
|
+
def m.flexmock_verify() endflexmock_verify182,5289
|
510
|
+
def test_not_calling_stubbed_method_is_an_errortest_not_calling_stubbed_method_is_an_error185,5328
|
511
|
+
def test_mock_is_verified_when_the_stub_is_verifiedtest_mock_is_verified_when_the_stub_is_verified194,5557
|
512
|
+
def test_stub_can_have_explicit_nametest_stub_can_have_explicit_name203,5827
|
513
|
+
def test_unamed_stub_will_use_default_naming_conventiontest_unamed_stub_will_use_default_naming_convention209,6006
|
514
|
+
def test_partials_can_be_defined_in_a_blocktest_partials_can_be_defined_in_a_block215,6202
|
515
|
+
def test_partials_defining_block_return_real_obj_not_proxytest_partials_defining_block_return_real_obj_not_proxy223,6389
|
516
|
+
def test_partial_mocks_always_return_domain_objecttest_partial_mocks_always_return_domain_object230,6583
|
517
|
+
def test_domain_objects_do_not_have_mock_methodstest_domain_objects_do_not_have_mock_methods241,6863
|
518
|
+
def test_partial_mocks_have_mock_methodstest_partial_mocks_have_mock_methods248,7055
|
519
|
+
def test_partial_mocks_do_not_have_mock_methods_after_teardowntest_partial_mocks_do_not_have_mock_methods_after_teardown256,7251
|
520
|
+
def test_partial_mocks_with_mock_method_singleton_colision_have_original_defs_restoredtest_partial_mocks_with_mock_method_singleton_colision_have_original_defs_restored265,7501
|
521
|
+
def dog.mock() :original endmock267,7608
|
522
|
+
class MockColisionMockColision273,7729
|
523
|
+
def mockmock274,7750
|
524
|
+
def test_partial_mocks_with_mock_method_non_singleton_colision_have_original_defs_restoredtest_partial_mocks_with_mock_method_non_singleton_colision_have_original_defs_restored279,7794
|
525
|
+
def test_safe_partial_mocks_do_not_support_mock_methodstest_safe_partial_mocks_do_not_support_mock_methods286,7998
|
526
|
+
def test_safe_partial_mocks_require_blocktest_safe_partial_mocks_require_block294,8226
|
527
|
+
def test_safe_partial_mocks_are_actually_mockedtest_safe_partial_mocks_are_actually_mocked299,8364
|
528
|
+
def test_should_receive_does_not_override_preexisting_deftest_should_receive_does_not_override_preexisting_def304,8534
|
529
|
+
def test_should_receive_does_override_should_receive_preexisting_deftest_should_receive_does_override_should_receive_preexisting_def310,8734
|
530
|
+
class LiarLiar315,8918
|
531
|
+
def respond_to?(method_name)respond_to?316,8931
|
532
|
+
def test_liar_actually_liestest_liar_actually_lies326,9100
|
533
|
+
def test_partial_mock_where_respond_to_is_true_yet_method_is_not_theretest_partial_mock_where_respond_to_is_true_yet_method_is_not_there332,9252
|
534
|
+
class ValueObjectValueObject343,9681
|
535
|
+
def initialize(val)initialize346,9723
|
536
|
+
def ==(other)==350,9773
|
537
|
+
def test_partial_mocks_in_the_presense_of_equal_definitiontest_partial_mocks_in_the_presense_of_equal_definition355,9830
|
538
|
+
|
539
|
+
test/test_rails_view_stub.rb,1491
|
540
|
+
module ViewTestsViewTests6,80
|
541
|
+
def test_view_mocks_as_stubtest_view_mocks_as_stub7,97
|
542
|
+
def test_fails_if_no_rendertest_fails_if_no_render12,191
|
543
|
+
def test_view_mocks_with_expectationtest_view_mocks_with_expectation19,335
|
544
|
+
def test_view_mocks_with_expectation_fails_with_different_templatetest_view_mocks_with_expectation_fails_with_different_template24,439
|
545
|
+
def test_view_mocks_with_expectation_and_multiple_templatestest_view_mocks_with_expectation_and_multiple_templates32,658
|
546
|
+
def pretend_to_be_rails_version(version)pretend_to_be_rails_version39,834
|
547
|
+
class TestRailsViewStubForVersionsUpTo_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsUpTo_1_2_445,1029
|
548
|
+
def setupsetup49,1147
|
549
|
+
def render(*names)render56,1376
|
550
|
+
class TestRailsViewStubForVersionsAfter_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_1_2_470,1654
|
551
|
+
def setupsetup74,1773
|
552
|
+
def render(*names)render82,2046
|
553
|
+
class TestRailsViewStubForVersionsAfter_2_0_2 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_2_0_297,2348
|
554
|
+
def setupsetup101,2467
|
555
|
+
def render(*names)render109,2742
|
556
|
+
class FlexMockFlexMock123,2997
|
557
|
+
module MockContainerMockContainer124,3012
|
558
|
+
module RailsRails125,3035
|
559
|
+
module VERSIONVERSION126,3052
|
560
|
+
class TestRailsVersion < Test::Unit::TestCaseTestRailsVersion133,3121
|
561
|
+
def test_rails_version_to_get_code_coveragetest_rails_version_to_get_code_coverage135,3196
|
562
|
+
module ActionViewActionView142,3294
|
563
|
+
class BaseBase143,3312
|
564
|
+
|
565
|
+
test/test_record_mode.rb,1339
|
566
|
+
class TestRecordMode < Test::Unit::TestCaseTestRecordMode16,390
|
567
|
+
def test_recording_mode_workstest_recording_mode_works20,505
|
568
|
+
def test_arguments_are_passed_to_recording_mode_blocktest_arguments_are_passed_to_recording_mode_block28,687
|
569
|
+
def test_recording_mode_handles_multiple_returnstest_recording_mode_handles_multiple_returns39,962
|
570
|
+
def test_recording_mode_does_not_specify_ordertest_recording_mode_does_not_specify_order53,1386
|
571
|
+
def test_recording_mode_gets_block_args_tootest_recording_mode_gets_block_args_too64,1632
|
572
|
+
def test_recording_mode_should_validate_args_with_equalstest_recording_mode_should_validate_args_with_equals76,1914
|
573
|
+
def test_recording_mode_should_allow_arg_contraint_validationtest_recording_mode_should_allow_arg_contraint_validation87,2149
|
574
|
+
def test_recording_mode_should_handle_multiplicity_contraintstest_recording_mode_should_handle_multiplicity_contraints98,2390
|
575
|
+
def test_strict_record_mode_requires_exact_argument_matchestest_strict_record_mode_requires_exact_argument_matches110,2657
|
576
|
+
def test_strict_record_mode_requires_exact_orderingtest_strict_record_mode_requires_exact_ordering122,2937
|
577
|
+
def test_strict_record_mode_requires_oncetest_strict_record_mode_requires_once136,3242
|
578
|
+
def test_strict_record_mode_can_not_failtest_strict_record_mode_can_not_fail149,3517
|
579
|
+
|
580
|
+
test/test_samples.rb,2164
|
581
|
+
class TestSamples < Test::Unit::TestCaseTestSamples17,378
|
582
|
+
def test_file_iotest_file_io25,748
|
583
|
+
def count_lines(file)count_lines33,999
|
584
|
+
class TestUndefined < Test::Unit::TestCaseTestUndefined43,1092
|
585
|
+
def test_undefined_valuestest_undefined_values46,1165
|
586
|
+
class TestSimple < Test::Unit::TestCaseTestSimple55,1351
|
587
|
+
def test_simple_mocktest_simple_mock58,1421
|
588
|
+
class TestDog < Test::Unit::TestCaseTestDog65,1556
|
589
|
+
def test_dog_wagstest_dog_wags68,1625
|
590
|
+
class WooferWoofer74,1736
|
591
|
+
class DogDog77,1754
|
592
|
+
def initializeinitialize78,1764
|
593
|
+
def barkbark81,1812
|
594
|
+
def wagwag84,1846
|
595
|
+
class TestDogBarking < Test::Unit::TestCaseTestDogBarking89,1878
|
596
|
+
def setupsetup94,2043
|
597
|
+
def test_dogtest_dog99,2118
|
598
|
+
class TestDogBarkingWithNewInstances < Test::Unit::TestCaseTestDogBarkingWithNewInstances105,2249
|
599
|
+
def setupsetup110,2415
|
600
|
+
def test_dogtest_dog114,2502
|
601
|
+
class TestDefaults < Test::Unit::TestCaseTestDefaults120,2636
|
602
|
+
def setupsetup123,2708
|
603
|
+
def test_something_where_bark_must_be_called_oncetest_something_where_bark_must_be_called_once128,2837
|
604
|
+
class TestDemeter < Test::Unit::TestCaseTestDemeter136,3040
|
605
|
+
def test_manual_mockingtest_manual_mocking138,3110
|
606
|
+
def test_demetertest_demeter151,3544
|
607
|
+
class TestDb < Test::Unit::TestCaseTestDb161,3759
|
608
|
+
def test_dbtest_db164,3825
|
609
|
+
class TestDb < Test::Unit::TestCaseTestDb175,4030
|
610
|
+
def test_query_and_updatetest_query_and_update178,4096
|
611
|
+
def test_ordered_queriestest_ordered_queries189,4383
|
612
|
+
def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode207,4923
|
613
|
+
def known_good_way_to_build_xml(builder)known_good_way_to_build_xml224,5400
|
614
|
+
def new_way_to_build_xml(builder)new_way_to_build_xml228,5467
|
615
|
+
def test_build_xmltest_build_xml232,5551
|
616
|
+
class TestMoreSamples < Test::Unit::TestCaseTestMoreSamples243,5813
|
617
|
+
def test_multiple_getstest_multiple_gets246,5888
|
618
|
+
def test_an_important_messagetest_an_important_message255,6133
|
619
|
+
class QuoteServiceQuoteService264,6394
|
620
|
+
class PortfolioPortfolio267,6422
|
621
|
+
def initializeinitialize268,6440
|
622
|
+
def valuevalue271,6507
|
623
|
+
def test_portfolio_valuetest_portfolio_value276,6563
|
624
|
+
|
625
|
+
test/test_should_ignore_missing.rb,1173
|
626
|
+
class TestShouldIgnoreMissing < Test::Unit::TestCaseTestShouldIgnoreMissing16,375
|
627
|
+
def setupsetup19,458
|
628
|
+
def test_mocks_do_not_respond_to_undefined_methodstest_mocks_do_not_respond_to_undefined_methods23,508
|
629
|
+
def test_mocks_do_respond_to_defined_methodstest_mocks_do_respond_to_defined_methods27,612
|
630
|
+
def test_mocks_do_respond_to_any_method_when_ignoring_missingtest_mocks_do_respond_to_any_method_when_ignoring_missing32,752
|
631
|
+
def test_ignored_methods_return_undefinedtest_ignored_methods_return_undefined37,898
|
632
|
+
def test_undefined_mocking_with_argumentstest_undefined_mocking_with_arguments43,1072
|
633
|
+
def test_method_chains_with_undefined_are_self_preservingtest_method_chains_with_undefined_are_self_preserving48,1220
|
634
|
+
def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown53,1385
|
635
|
+
def test_method_returns_callable_proctest_method_returns_callable_proc59,1509
|
636
|
+
def test_not_calling_method_proc_will_fail_count_constraintstest_not_calling_method_proc_will_fail_count_constraints66,1693
|
637
|
+
def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods75,1965
|
638
|
+
|
639
|
+
test/test_should_receive.rb,10635
|
640
|
+
def mock_top_level_functionmock_top_level_function16,375
|
641
|
+
module KernelKernel20,416
|
642
|
+
def mock_kernel_functionmock_kernel_function21,430
|
643
|
+
class TestFlexMockShoulds < Test::Unit::TestCaseTestFlexMockShoulds26,477
|
644
|
+
def test_defaultstest_defaults38,1021
|
645
|
+
def test_returns_with_valuetest_returns_with_value47,1189
|
646
|
+
def test_returns_with_multiple_valuestest_returns_with_multiple_values55,1358
|
647
|
+
def test_multiple_returnstest_multiple_returns66,1618
|
648
|
+
def test_returns_with_blocktest_returns_with_block77,1878
|
649
|
+
def test_block_example_from_readmetest_block_example_from_readme86,2081
|
650
|
+
def test_return_with_and_without_block_interleavedtest_return_with_and_without_block_interleaved96,2377
|
651
|
+
def test_and_returns_aliastest_and_returns_alias106,2657
|
652
|
+
def test_and_return_undefinedtest_and_return_undefined113,2794
|
653
|
+
def test_and_yield_will_continue_to_yield_the_same_valuetest_and_yield_will_continue_to_yield_the_same_value123,3143
|
654
|
+
def test_and_yield_with_multiple_values_yields_the_valuestest_and_yield_with_multiple_values_yields_the_values131,3389
|
655
|
+
def test_multiple_yields_are_done_sequentiallytest_multiple_yields_are_done_sequentially138,3599
|
656
|
+
def test_failure_if_no_block_giventest_failure_if_no_block_given147,3871
|
657
|
+
def test_failure_different_return_value_than_yield_returntest_failure_different_return_value_than_yield_return154,4054
|
658
|
+
def test_multiple_yieldstest_multiple_yields163,4340
|
659
|
+
def test_multiple_yields_will_yield_the_last_value_settest_multiple_yields_will_yield_the_last_value_set171,4578
|
660
|
+
def test_yielding_then_not_yielding_and_then_yielding_againtest_yielding_then_not_yielding_and_then_yielding_again182,4955
|
661
|
+
def test_yields_syntaxtest_yields_syntax193,5302
|
662
|
+
class MyError < RuntimeErrorMyError200,5447
|
663
|
+
def test_and_raises_with_exception_class_throws_exceptiontest_and_raises_with_exception_class_throws_exception203,5485
|
664
|
+
def test_and_raises_with_arguments_throws_exception_made_with_argstest_and_raises_with_arguments_throws_exception_made_with_args212,5694
|
665
|
+
def test_and_raises_with_a_specific_exception_throws_the_exceptiontest_and_raises_with_a_specific_exception_throws_the_exception222,5975
|
666
|
+
def test_raises_is_an_alias_for_and_raisetest_raises_is_an_alias_for_and_raise233,6245
|
667
|
+
def test_multiple_and_raise_clauses_will_be_done_sequentiallytest_multiple_and_raise_clauses_will_be_done_sequentially242,6450
|
668
|
+
def test_and_throw_will_throw_a_symboltest_and_throw_will_throw_a_symbol254,6848
|
669
|
+
def test_and_throw_with_expression_will_throwtest_and_throw_with_expression_will_throw265,7091
|
670
|
+
def test_throws_is_an_alias_for_and_throwtest_throws_is_an_alias_for_and_throw276,7373
|
671
|
+
def test_multiple_throws_will_be_done_sequentiallytest_multiple_throws_will_be_done_sequentially287,7648
|
672
|
+
def test_multiple_expectationstest_multiple_expectations299,7978
|
673
|
+
def test_with_no_args_with_no_argstest_with_no_args_with_no_args309,8215
|
674
|
+
def test_with_no_args_but_with_argstest_with_no_args_but_with_args316,8343
|
675
|
+
def test_with_any_argstest_with_any_args325,8542
|
676
|
+
def test_with_any_single_arg_matchingtest_with_any_single_arg_matching335,8720
|
677
|
+
def test_with_any_single_arg_nonmatchingtest_with_any_single_arg_nonmatching343,8913
|
678
|
+
def test_with_equal_arg_matchingtest_with_equal_arg_matching353,9148
|
679
|
+
def test_with_equal_arg_nonmatchingtest_with_equal_arg_nonmatching360,9311
|
680
|
+
def test_with_arbitrary_arg_matchingtest_with_arbitrary_arg_matching369,9548
|
681
|
+
def test_args_matching_with_regextest_args_matching_with_regex384,9968
|
682
|
+
def test_arg_matching_with_regex_matching_non_stringtest_arg_matching_with_regex_matching_non_string396,10295
|
683
|
+
def test_arg_matching_with_classtest_arg_matching_with_class403,10472
|
684
|
+
def test_arg_matching_with_no_matchtest_arg_matching_with_no_match414,10762
|
685
|
+
def test_arg_matching_with_string_doesnt_over_matchtest_arg_matching_with_string_doesnt_over_match423,10975
|
686
|
+
def test_block_arg_given_to_no_argstest_block_arg_given_to_no_args432,11194
|
687
|
+
def test_block_arg_given_to_matching_proctest_block_arg_given_to_matching_proc441,11398
|
688
|
+
def test_arg_matching_precedence_when_best_firsttest_arg_matching_precedence_when_best_first452,11683
|
689
|
+
def test_arg_matching_precedence_when_best_last_but_still_matches_firsttest_arg_matching_precedence_when_best_last_but_still_matches_first460,11892
|
690
|
+
def test_never_and_never_calledtest_never_and_never_called468,12124
|
691
|
+
def test_never_and_called_oncetest_never_and_called_once474,12239
|
692
|
+
def test_once_called_oncetest_once_called_once483,12435
|
693
|
+
def test_once_but_never_calledtest_once_but_never_called490,12569
|
694
|
+
def test_once_but_called_twicetest_once_but_called_twice498,12756
|
695
|
+
def test_twice_and_called_twicetest_twice_and_called_twice508,12975
|
696
|
+
def test_zero_or_more_called_zerotest_zero_or_more_called_zero516,13130
|
697
|
+
def test_zero_or_more_called_oncetest_zero_or_more_called_once522,13252
|
698
|
+
def test_zero_or_more_called_100test_zero_or_more_called_100529,13385
|
699
|
+
def test_timestest_times536,13531
|
700
|
+
def test_at_least_called_oncetest_at_least_called_once543,13672
|
701
|
+
def test_at_least_but_never_calledtest_at_least_but_never_called550,13819
|
702
|
+
def test_at_least_once_but_called_twicetest_at_least_once_but_called_twice558,14022
|
703
|
+
def test_at_least_and_exacttest_at_least_and_exact566,14193
|
704
|
+
def test_at_most_but_never_calledtest_at_most_but_never_called576,14423
|
705
|
+
def test_at_most_called_oncetest_at_most_called_once582,14559
|
706
|
+
def test_at_most_called_twicetest_at_most_called_twice589,14704
|
707
|
+
def test_at_most_and_at_least_called_nevertest_at_most_and_at_least_called_never599,14932
|
708
|
+
def test_at_most_and_at_least_called_oncetest_at_most_and_at_least_called_once607,15157
|
709
|
+
def test_at_most_and_at_least_called_twicetest_at_most_and_at_least_called_twice614,15330
|
710
|
+
def test_at_most_and_at_least_called_three_timestest_at_most_and_at_least_called_three_times622,15518
|
711
|
+
def test_call_counts_only_apply_to_matching_argstest_call_counts_only_apply_to_matching_args633,15796
|
712
|
+
def test_call_counts_only_apply_to_matching_args_with_mismatchtest_call_counts_only_apply_to_matching_args_with_mismatch645,16074
|
713
|
+
def test_ordered_calls_in_order_will_passtest_ordered_calls_in_order_will_pass661,16507
|
714
|
+
def test_ordered_calls_out_of_order_will_failtest_ordered_calls_out_of_order_will_fail671,16689
|
715
|
+
def test_order_calls_with_different_arg_lists_and_in_order_will_passtest_order_calls_with_different_arg_lists_and_in_order_will_pass683,16950
|
716
|
+
def test_order_calls_with_different_arg_lists_and_out_of_order_will_failtest_order_calls_with_different_arg_lists_and_out_of_order_will_fail693,17203
|
717
|
+
def test_unordered_calls_do_not_effect_ordered_testingtest_unordered_calls_do_not_effect_ordered_testing705,17529
|
718
|
+
def test_ordered_with_multiple_calls_will_passtest_ordered_with_multiple_calls_will_pass719,17799
|
719
|
+
def test_grouped_ordering_with_numberstest_grouped_ordering_with_numbers731,18014
|
720
|
+
def test_grouped_ordering_with_symbolstest_grouped_ordering_with_symbols746,18335
|
721
|
+
def test_explicit_ordering_mixed_with_implicit_ordering_should_not_overlaptest_explicit_ordering_mixed_with_implicit_ordering_should_not_overlap761,18697
|
722
|
+
def test_explicit_ordering_with_explicit_misorderstest_explicit_ordering_with_explicit_misorders771,19070
|
723
|
+
def test_ordering_with_explicit_no_args_matches_correctlytest_ordering_with_explicit_no_args_matches_correctly787,19601
|
724
|
+
def test_ordering_with_any_arg_matching_correctly_matchestest_ordering_with_any_arg_matching_correctly_matches799,19978
|
725
|
+
def test_ordering_between_mocks_is_not_normally_definedtest_ordering_between_mocks_is_not_normally_defined810,20290
|
726
|
+
def test_ordering_between_mocks_is_honored_for_global_orderingtest_ordering_between_mocks_is_honored_for_global_ordering822,20546
|
727
|
+
def test_expectation_formatingtest_expectation_formating834,20864
|
728
|
+
def test_multi_expectation_formattingtest_multi_expectation_formatting843,21092
|
729
|
+
def test_explicit_ordering_with_limits_allow_multiple_return_valuestest_explicit_ordering_with_limits_allow_multiple_return_values849,21255
|
730
|
+
def test_global_methods_can_be_mockedtest_global_methods_can_be_mocked868,21966
|
731
|
+
def test_kernel_methods_can_be_mockedtest_kernel_methods_can_be_mocked874,22150
|
732
|
+
def test_undefing_kernel_methods_dont_effect_other_mockstest_undefing_kernel_methods_dont_effect_other_mocks880,22328
|
733
|
+
def test_expectations_can_by_marked_as_defaulttest_expectations_can_by_marked_as_default888,22596
|
734
|
+
def test_default_expectations_are_search_in_the_proper_ordertest_default_expectations_are_search_in_the_proper_order894,22762
|
735
|
+
def test_expectations_with_count_constraints_can_by_marked_as_defaulttest_expectations_with_count_constraints_can_by_marked_as_default902,23069
|
736
|
+
def test_default_expectations_are_overridden_by_later_expectationstest_default_expectations_are_overridden_by_later_expectations910,23315
|
737
|
+
def test_default_expectations_can_be_changed_by_later_expectationstest_default_expectations_can_be_changed_by_later_expectations918,23543
|
738
|
+
def test_ordered_default_expectations_can_be_specifiedtest_ordered_default_expectations_can_be_specified926,23792
|
739
|
+
def test_ordered_default_expectations_can_be_overriddentest_ordered_default_expectations_can_be_overridden934,24043
|
740
|
+
def test_by_default_works_at_mock_leveltest_by_default_works_at_mock_level946,24314
|
741
|
+
def test_by_default_at_mock_level_does_nothing_with_no_expectationstest_by_default_at_mock_level_does_nothing_with_no_expectations957,24589
|
742
|
+
def test_partial_mocks_can_have_default_expectationstest_partial_mocks_can_have_default_expectations963,24734
|
743
|
+
def test_partial_mocks_can_have_default_expectations_overriddentest_partial_mocks_can_have_default_expectations_overridden969,24915
|
744
|
+
def test_wicked_and_evil_tricks_with_by_default_are_thwartedtest_wicked_and_evil_tricks_with_by_default_are_thwarted976,25163
|
745
|
+
def test_mocks_can_handle_multi_parameter_respond_tostest_mocks_can_handle_multi_parameter_respond_tos988,25568
|
746
|
+
def test_can_mock_operatorstest_can_mock_operators999,25915
|
747
|
+
def assert_operator(op, &block)assert_operator1028,26930
|
748
|
+
class TestFlexMockShouldsWithInclude < Test::Unit::TestCaseTestFlexMockShouldsWithInclude1036,27084
|
749
|
+
def test_include_enables_unqualified_arg_type_referencestest_include_enables_unqualified_arg_type_references1038,27178
|
750
|
+
class TestFlexMockArgTypesDontLeak < Test::Unit::TestCaseTestFlexMockArgTypesDontLeak1046,27342
|
751
|
+
def test_unqualified_arg_type_references_are_undefined_by_defaulttest_unqualified_arg_type_references_are_undefined_by_default1047,27400
|
752
|
+
|
753
|
+
test/test_tu_integration.rb,1570
|
754
|
+
class TestTuIntegrationFlexMockMethod < Test::Unit::TestCaseTestTuIntegrationFlexMockMethod15,352
|
755
|
+
def test_can_construct_flexmocktest_can_construct_flexmock18,445
|
756
|
+
def test_can_construct_flexmock_with_blocktest_can_construct_flexmock_with_block24,594
|
757
|
+
class TestTuIntegrationMockVerificationInTeardown < Test::Unit::TestCaseTestTuIntegrationMockVerificationInTeardown32,770
|
758
|
+
def teardownteardown35,873
|
759
|
+
def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown41,969
|
760
|
+
class TestTuIntegrationMockVerificationWithoutSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationWithoutSetup46,1087
|
761
|
+
def teardownteardown49,1192
|
762
|
+
def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown55,1288
|
763
|
+
class TestTuIntegrationMockVerificationForgetfulSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationForgetfulSetup60,1406
|
764
|
+
def teardownteardown63,1513
|
765
|
+
def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown69,1609
|
766
|
+
class TestTuIntegrationSetupOverridenAndNoMocksOk < Test::Unit::TestCaseTestTuIntegrationSetupOverridenAndNoMocksOk74,1727
|
767
|
+
def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown77,1830
|
768
|
+
class TestTuIntegrationFailurePreventsVerification < Test::Unit::TestCaseTestTuIntegrationFailurePreventsVerification81,1893
|
769
|
+
def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown84,1997
|
770
|
+
def simulate_failuresimulate_failure91,2131
|
771
|
+
|
772
|
+
test/test_undefined.rb,873
|
773
|
+
class UndefinedTest < Test::Unit::TestCaseUndefinedTest15,352
|
774
|
+
def test_undefined_method_calls_return_undefinedtest_undefined_method_calls_return_undefined16,395
|
775
|
+
def test_equalstest_equals20,513
|
776
|
+
def test_math_operatorstest_math_operators25,611
|
777
|
+
def test_math_operators_reversedtest_math_operators_reversed33,820
|
778
|
+
def test_comparisonstest_comparisons41,1038
|
779
|
+
def test_comparisons_reversedtest_comparisons_reversed49,1247
|
780
|
+
def test_base_level_methodstest_base_level_methods57,1465
|
781
|
+
def test_cant_create_a_new_undefinedtest_cant_create_a_new_undefined61,1552
|
782
|
+
def test_cant_clone_undefinedtest_cant_clone_undefined65,1662
|
783
|
+
def test_string_representationstest_string_representations70,1796
|
784
|
+
def test_undefined_is_not_niltest_undefined_is_not_nil75,1934
|
785
|
+
def assert_undefined(obj)assert_undefined81,2012
|
786
|
+
def undefinedundefined85,2075
|
data/doc/GoogleExample.rdoc
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/flexmock/base.rb
CHANGED
File without changes
|
data/lib/flexmock/composite.rb
CHANGED
File without changes
|
data/lib/flexmock/core.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/flexmock/expectation.rb
CHANGED
File without changes
|
@@ -49,8 +49,11 @@ class FlexMock
|
|
49
49
|
|
50
50
|
# Find an expectation matching the given arguments.
|
51
51
|
def find_expectation(*args) # :nodoc:
|
52
|
-
|
52
|
+
if @expectations.empty?
|
53
53
|
find_expectation_in(@defaults, *args)
|
54
|
+
else
|
55
|
+
find_expectation_in(@expectations, *args)
|
56
|
+
end
|
54
57
|
end
|
55
58
|
|
56
59
|
# Do the post test verification for this directory. Check all the
|
File without changes
|
data/lib/flexmock/noop.rb
CHANGED
File without changes
|
File without changes
|
@@ -91,8 +91,9 @@ class FlexMock
|
|
91
91
|
if template_name
|
92
92
|
viewmock.should_receive(:render_file).with(/\/#{template_name}$/, any, any).
|
93
93
|
and_return(nil).once
|
94
|
-
else
|
95
94
|
viewmock.should_receive(:render_file).and_return(nil)
|
95
|
+
else
|
96
|
+
viewmock.should_receive(:render_file).at_least.once.and_return(nil)
|
96
97
|
end
|
97
98
|
flexmock(ActionView::Base).should_receive(:new).and_return(viewmock)
|
98
99
|
end
|
data/lib/flexmock/recorder.rb
CHANGED
File without changes
|
data/lib/flexmock/rspec.rb
CHANGED
File without changes
|
data/lib/flexmock/test_unit.rb
CHANGED
File without changes
|
File without changes
|
data/lib/flexmock/validators.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/test_new_instances.rb
CHANGED
File without changes
|
@@ -29,9 +29,9 @@ module ViewTests
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def test_view_mocks_with_expectation_and_multiple_templates
|
33
33
|
should_render_view("new")
|
34
|
-
render "controller/edit", "controller/
|
34
|
+
render "controller/edit", "controller/show", "controller/new"
|
35
35
|
end
|
36
36
|
|
37
37
|
private
|
@@ -92,3 +92,54 @@ class TestRailsViewStubForVersionsAfter_1_2_4 < Test::Unit::TestCase
|
|
92
92
|
end
|
93
93
|
|
94
94
|
end
|
95
|
+
|
96
|
+
######################################################################
|
97
|
+
class TestRailsViewStubForVersionsAfter_2_0_2 < Test::Unit::TestCase
|
98
|
+
include FlexMock::TestCase
|
99
|
+
include ViewTests
|
100
|
+
|
101
|
+
def setup
|
102
|
+
@controller_class = flexmock("controller class")
|
103
|
+
@controller = flexmock("controller", :class => @controller_class)
|
104
|
+
@response = flexmock("Response")
|
105
|
+
pretend_to_be_rails_version("2.0.2")
|
106
|
+
end
|
107
|
+
|
108
|
+
# Simulate Rails rendering after Rails version 2.0.2
|
109
|
+
def render(*names)
|
110
|
+
v = ActionView::Base.new
|
111
|
+
v.assigns(:x => :y)
|
112
|
+
v.template_format
|
113
|
+
v.view_paths
|
114
|
+
v.pick_template_extension
|
115
|
+
names.each do |name|
|
116
|
+
v.file_exists?(name)
|
117
|
+
end
|
118
|
+
v.render_file(names.last, nil, nil)
|
119
|
+
end
|
120
|
+
|
121
|
+
end
|
122
|
+
|
123
|
+
class FlexMock
|
124
|
+
module MockContainer
|
125
|
+
module Rails
|
126
|
+
module VERSION
|
127
|
+
STRING = 1
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
class TestRailsVersion < Test::Unit::TestCase
|
134
|
+
include FlexMock::TestCase
|
135
|
+
def test_rails_version_to_get_code_coverage
|
136
|
+
rails_version
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# Test Helper Classes
|
141
|
+
|
142
|
+
module ActionView
|
143
|
+
class Base
|
144
|
+
end
|
145
|
+
end
|
data/test/test_should_receive.rb
CHANGED
@@ -915,6 +915,17 @@ class TestFlexMockShoulds < Test::Unit::TestCase
|
|
915
915
|
m.foo
|
916
916
|
end
|
917
917
|
|
918
|
+
def test_default_expectations_can_be_changed_by_later_expectations
|
919
|
+
m = flexmock("m")
|
920
|
+
m.should_receive(:foo).with(1).and_return(:bar).once.by_default
|
921
|
+
m.should_receive(:foo).with(2).and_return(:baz).once
|
922
|
+
assert_raise Test::Unit::AssertionFailedError do
|
923
|
+
# This expectation should be hidded by the non-result
|
924
|
+
m.foo(1)
|
925
|
+
end
|
926
|
+
m.foo(2)
|
927
|
+
end
|
928
|
+
|
918
929
|
def test_ordered_default_expectations_can_be_specified
|
919
930
|
m = flexmock("m")
|
920
931
|
m.should_receive(:foo).ordered.by_default
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-09-03 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- CHANGES
|
43
43
|
- Rakefile
|
44
44
|
- README
|
45
|
+
- TAGS
|
45
46
|
- lib/flexmock/argument_matchers.rb
|
46
47
|
- lib/flexmock/argument_types.rb
|
47
48
|
- lib/flexmock/base.rb
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
requirements: []
|
133
134
|
|
134
135
|
rubyforge_project:
|
135
|
-
rubygems_version: 1.0
|
136
|
+
rubygems_version: 1.2.0
|
136
137
|
signing_key:
|
137
138
|
specification_version: 2
|
138
139
|
summary: Simple and Flexible Mock Objects for Testing
|