flexmock 1.3.2 → 1.3.3

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.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +9 -9
  3. data/Rakefile +3 -1
  4. data/lib/flexmock.rb +1 -1
  5. data/lib/flexmock/argument_matchers.rb +1 -1
  6. data/lib/flexmock/argument_types.rb +1 -2
  7. data/lib/flexmock/base.rb +2 -1
  8. data/lib/flexmock/call_record.rb +30 -0
  9. data/lib/flexmock/call_validator.rb +68 -0
  10. data/lib/flexmock/composite_expectation.rb +56 -0
  11. data/lib/flexmock/core.rb +30 -64
  12. data/lib/flexmock/core_class_methods.rb +1 -1
  13. data/lib/flexmock/default_framework_adapter.rb +1 -1
  14. data/lib/flexmock/deprecated_methods.rb +8 -3
  15. data/lib/flexmock/errors.rb +1 -1
  16. data/lib/flexmock/expectation.rb +7 -84
  17. data/lib/flexmock/expectation_builder.rb +133 -0
  18. data/lib/flexmock/expectation_director.rb +6 -4
  19. data/lib/flexmock/expectation_recorder.rb +42 -0
  20. data/lib/flexmock/extensions/active_record_model.rb +109 -0
  21. data/lib/flexmock/mock_builder.rb +139 -0
  22. data/lib/flexmock/mock_container.rb +13 -214
  23. data/lib/flexmock/noop.rb +1 -1
  24. data/lib/flexmock/ordering.rb +1 -2
  25. data/lib/flexmock/partial_mock.rb +95 -57
  26. data/lib/flexmock/rails.rb +1 -1
  27. data/lib/flexmock/recorder.rb +4 -3
  28. data/lib/flexmock/rspec.rb +1 -1
  29. data/lib/flexmock/rspec_spy_matcher.rb +4 -0
  30. data/lib/flexmock/spy_describers.rb +22 -5
  31. data/lib/flexmock/test_unit.rb +2 -40
  32. data/lib/flexmock/test_unit_integration.rb +4 -4
  33. data/lib/flexmock/test_unit_testcase_extensions.rb +49 -0
  34. data/lib/flexmock/undefined.rb +1 -1
  35. data/lib/flexmock/validators.rb +18 -12
  36. data/lib/flexmock/version.rb +1 -1
  37. data/test/based_partials_test.rb +1 -1
  38. data/test/container_methods_test.rb +1 -1
  39. data/test/default_framework_adapter_test.rb +1 -1
  40. data/test/demeter_mocking_test.rb +52 -2
  41. data/test/deprecated_methods_test.rb +1 -1
  42. data/test/examples_from_readme_test.rb +1 -1
  43. data/test/expectation_description_test.rb +1 -1
  44. data/test/extended_should_receive_test.rb +1 -1
  45. data/test/mock_builder_test.rb +68 -0
  46. data/test/naming_test.rb +1 -1
  47. data/test/new_instances_test.rb +1 -1
  48. data/test/partial_mock_test.rb +23 -6
  49. data/test/record_mode_test.rb +1 -1
  50. data/test/rspec_integration/integration_spec.rb +1 -1
  51. data/test/samples_test.rb +1 -2
  52. data/test/should_ignore_missing_test.rb +1 -1
  53. data/test/should_receive_test.rb +1 -1
  54. data/test/test_setup.rb +17 -0
  55. data/test/test_unit_integration/auto_test_unit_test.rb +1 -1
  56. data/test/tu_integration_test.rb +1 -1
  57. data/test/undefined_test.rb +1 -1
  58. metadata +52 -52
  59. data/TAGS +0 -1056
  60. data/lib/flexmock/composite.rb +0 -10
  61. data/lib/flexmock/rails/view_mocking.rb +0 -144
  62. data/test/rails_view_stub_test.rb +0 -145
data/TAGS DELETED
@@ -1,1056 +0,0 @@
1
-
2
- (null),255
3
- def known_good_way_to_build_xml(builder)known_good_way_to_build_xml160,4493
4
- def new_way_to_build_xml(builder)new_way_to_build_xml164,4562
5
- class QuoteServiceQuoteService235,6473
6
- class PortfolioPortfolio238,6501
7
- def valuevalue239,6519
8
-
9
- doc/examples/test_unit_examples_test.rb,1490
10
- class TestSimple < Test::Unit::TestCaseTestSimple3,30
11
- def test_simple_mocktest_simple_mock7,108
12
- class TestUndefined < Test::Unit::TestCaseTestUndefined15,244
13
- def test_undefined_valuestest_undefined_values19,364
14
- class TestDb < Test::Unit::TestCaseTestDb27,549
15
- def test_dbtest_db36,862
16
- class TestOrdered < Test::Unit::TestCaseTestOrdered48,1069
17
- def test_query_and_updatetest_query_and_update55,1231
18
- class MoreOrdered < Test::Unit::TestCaseMoreOrdered67,1457
19
- def test_ordered_queriestest_ordered_queries81,2092
20
- class EvenMoreOrderedTest < Test::Unit::TestCaseEvenMoreOrderedTest102,2633
21
- def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode112,2998
22
- class RecordedTest < Test::Unit::TestCaseRecordedTest132,3462
23
- def test_build_xmltest_build_xml148,4182
24
- def known_good_way_to_build_xml(builder)known_good_way_to_build_xml157,4437
25
- def new_way_to_build_xml(builder)new_way_to_build_xml161,4506
26
- class MultipleReturnValueTest < Test::Unit::TestCaseMultipleReturnValueTest167,4573
27
- def test_multiple_getstest_multiple_gets175,4844
28
- class IgnoreUnimportantMessages < Test::Unit::TestCaseIgnoreUnimportantMessages187,5119
29
- def test_an_important_messagetest_an_important_message196,5444
30
- class PartialMockTest < Test::Unit::TestCasePartialMockTest213,5869
31
- def test_portfolio_valuetest_portfolio_value222,6185
32
- class QuoteServiceQuoteService231,6439
33
- class PortfolioPortfolio234,6467
34
- def valuevalue235,6485
35
-
36
- ,43
37
- module RDocRDoc1,0
38
- module PagePage2,12
39
-
40
- dual_spec.rb,0
41
-
42
- install.rb,29
43
- def indir(newdir)indir7,68
44
-
45
- ,880
46
- class FlexMockFlexMock14,320
47
- class AnyMatcherAnyMatcher17,427
48
- def ===(target)===18,446
49
- def inspectinspect21,485
50
- class EqualMatcherEqualMatcher28,637
51
- def initialize(obj)initialize29,658
52
- def ===(target)===32,707
53
- def inspectinspect35,756
54
- class ProcMatcherProcMatcher44,967
55
- def initialize(&block)initialize45,987
56
- def ===(target)===48,1043
57
- def inspectinspect51,1097
58
- class HashMatcherHashMatcher58,1269
59
- def initialize(hash)initialize59,1289
60
- def ===(target)===62,1341
61
- def inspectinspect65,1412
62
- class DuckMatcherDuckMatcher72,1607
63
- def initialize(methods)initialize73,1627
64
- def ===(target)===76,1688
65
- def inspectinspect79,1766
66
- class OptionalProcMatcherOptionalProcMatcher86,1990
67
- def initializeinitialize87,2018
68
- def ===(target)===89,2045
69
- def inspectinspect92,2132
70
-
71
- lib/flexmock/argument_matching.rb,224
72
- class FlexMockFlexMock1,0
73
- module ArgumentMatchingArgumentMatching2,15
74
- def all_match?(expected_args, actual_args)all_match?7,92
75
- def match?(expected, actual)match?23,595
76
- def missing?(arg)missing?29,752
77
-
78
- ,272
79
- class FlexMockFlexMock14,332
80
- module ArgumentTypesArgumentTypes21,625
81
- def anyany23,708
82
- def eq(obj)eq29,835
83
- def on(&block)on36,1035
84
- def hsh(hash)hsh42,1176
85
- def ducktype(*methods)ducktype48,1353
86
- def optional_procoptional_proc52,1420
87
-
88
- lib/flexmock/base.rb,0
89
-
90
- ,87
91
- class ClassClass10,415
92
- def flexmock_defined?(method_name)flexmock_defined?13,491
93
-
94
- ,30
95
- class FlexMockFlexMock8,133
96
-
97
- lib/flexmock/core.rb,1372
98
- class FlexMockFlexMock49,1379
99
- def initialize(name="unknown", container=nil)initialize58,1649
100
- def inspectinspect70,1981
101
- def flexmock_verifyflexmock_verify76,2141
102
- def flexmock_teardownflexmock_teardown87,2382
103
- def should_ignore_missingshould_ignore_missing91,2462
104
- def by_defaultby_default97,2583
105
- def matches?(sym, actual_args, options)matches?103,2727
106
- def matches_block?(block_option)matches_block?111,2924
107
- def method_missing(sym, *args, &block)method_missing119,3147
108
- def respond_to?(sym, *args)respond_to?140,3840
109
- def flexmock_find_expectation(method_name, *args) # :nodoc:flexmock_find_expectation145,3996
110
- def flexmock_expectations_for(method_name) # :nodoc:flexmock_expectations_for151,4201
111
- def flexmock_based_on(base_class)flexmock_based_on155,4294
112
- def flexmock_received?(sym, args, options={})flexmock_received?161,4469
113
- def flexmock_callsflexmock_calls183,5096
114
- def flexmock_invoke_original(sym, args)flexmock_invoke_original189,5211
115
- def method(sym)method194,5356
116
- def should_receive(*args)should_receive223,6395
117
- def flexmock_define_expectation(location, *args)flexmock_define_expectation228,6507
118
- def should_expectshould_expect252,7384
119
- def flexmock_wrap(&block)flexmock_wrap260,7574
120
- def override_existing_method(sym)override_existing_method274,8129
121
- def sclasssclass283,8349
122
-
123
- ,335
124
- class FlexMockFlexMock15,353
125
- def use(*names)use39,1294
126
- def format_call(sym, args) # :nodoc:format_call53,1691
127
- def format_args(args)format_args59,1865
128
- def check(msg, &block) # :nodoc:check69,2129
129
- class UseContainerUseContainer76,2302
130
- def initializeinitialize81,2384
131
- def passed?passed?85,2441
132
-
133
- lib/flexmock/default_framework_adapter.rb,345
134
- class FlexMockFlexMock14,319
135
- class DefaultFrameworkAdapterDefaultFrameworkAdapter15,334
136
- def assert_block(msg, &block)assert_block16,366
137
- def assert_equal(a, b, msg=nil)assert_equal23,521
138
- class AssertionFailedError < StandardError; endAssertionFailedError27,621
139
- def assertion_failed_errorassertion_failed_error28,673
140
-
141
- lib/flexmock/deprecated_methods.rb,340
142
- class ModuleModule13,296
143
- def flexmock_deprecate(*method_names)flexmock_deprecate14,309
144
- class FlexMockFlexMock33,809
145
- def mock_handle(sym, expected_count=nil, &block) # :nodoc:mock_handle40,1107
146
- class PartialMockProxyPartialMockProxy47,1397
147
- def any_instance(&block)any_instance53,1554
148
- module OrderingOrdering59,1702
149
-
150
- ,137
151
- class FlexMockFlexMock14,320
152
- class UsageError < ::RuntimeErrorUsageError17,388
153
- class MockError < ::RuntimeErrorMockError20,431
154
-
155
- lib/flexmock/expectation.rb,2211
156
- class FlexMockFlexMock15,356
157
- class ExpectationExpectation29,889
158
- def initialize(mock, sym, location)initialize35,1035
159
- def to_sto_s51,1434
160
- def descriptiondescription62,1705
161
- def verify_call(*args)verify_call73,2081
162
- def _return_value(args) # :nodoc:_return_value82,2301
163
- def return_value(args)return_value87,2441
164
- def perform_yielding(args)perform_yielding101,2769
165
- def eligible?eligible?117,3354
166
- def call_count_constrained?call_count_constrained?122,3503
167
- def validate_ordervalidate_order127,3607
168
- def flexmock_verifyflexmock_verify139,3982
169
- def match_args(args)match_args147,4179
170
- def with(*args)with152,4338
171
- def with_no_argswith_no_args158,4472
172
- def with_any_argswith_any_args164,4605
173
- def and_return(*args, &block)and_return195,5614
174
- def and_return_undefinedand_return_undefined219,6331
175
- def and_yield(*yield_values)and_yield235,6900
176
- def and_raise(exception, *args)and_raise259,7653
177
- def and_throw(sym, value=nil)and_throw273,8018
178
- def pass_thru(&block)pass_thru278,8128
179
- def zero_or_more_timeszero_or_more_times286,8367
180
- def times(limit)times293,8590
181
- def nevernever302,8937
182
- def onceonce309,9152
183
- def twicetwice316,9367
184
- def at_leastat_least328,9693
185
- def at_mostat_most341,10072
186
- def ordered(group_name=nil)ordered370,11341
187
- def globallyglobally382,11721
188
- def define_ordered(group_name, ordering)define_ordered388,11836
189
- def explicitlyexplicitly404,12417
190
- def by_defaultby_default408,12456
191
- def flexmock_location_filterflexmock_location_filter413,12606
192
- class CompositeExpectationCompositeExpectation426,12999
193
- def initializeinitialize429,13073
194
- def add(expectation)add434,13169
195
- def method_missing(sym, *args, &block)method_missing439,13310
196
- def order_numberorder_number450,13685
197
- def mockmock455,13795
198
- def should_receive(*args, &block)should_receive461,13959
199
- def to_sto_s466,14132
200
- class ExpectationRecorderExpectationRecorder480,14590
201
- def initializeinitialize483,14650
202
- def method_missing(sym, *args, &block)method_missing488,14761
203
- def apply(mock)apply496,15033
204
-
205
- ,499
206
- class FlexMockFlexMock15,345
207
- class ExpectationDirectorExpectationDirector20,556
208
- def initialize(sym)initialize23,640
209
- def call(args, call_record=nil)call38,1188
210
- def <<(expectation)<<47,1509
211
- def find_expectation(*args) # :nodoc:find_expectation52,1633
212
- def flexmock_verify # :nodoc:flexmock_verify63,2007
213
- def defaultify_expectation(exp) # :nodoc:defaultify_expectation70,2218
214
- def find_expectation_in(expectations, *args)find_expectation_in82,2499
215
-
216
- ,285
217
- class FlexMockFlexMock2,1
218
- class ExplicitNeededExplicitNeeded11,389
219
- def initialize(expectation, method_name, base_class)initialize12,412
220
- def explicitlyexplicitly19,599
221
- def explicit?explicit?24,661
222
- def method_missing(sym, *args, &block)method_missing28,704
223
-
224
- lib/flexmock/mock_container.rb,1023
225
- class FlexMockFlexMock16,381
226
- module MockContainerMockContainer26,782
227
- def flexmock_teardownflexmock_teardown31,966
228
- def flexmock_verifyflexmock_verify38,1146
229
- def flexmock_created_mocksflexmock_created_mocks45,1302
230
- def flexmock_closeflexmock_close51,1522
231
- def flexmock(*args)flexmock119,4730
232
- def flexmock_remember(mocking_object)flexmock_remember173,6352
233
- def flexmock_test_has_failed?flexmock_test_has_failed?186,6823
234
- class MockContainerHelperMockContainerHelper199,7335
235
- def next_idnext_id203,7444
236
- def parse_should_args(mock, args, &block) # :nodoc:parse_should_args216,7917
237
- def add_model_methods(mock, model_class, id, location)add_model_methods234,8430
238
- def make_partial_proxy(container, obj, name, safe_mode)make_partial_proxy263,9888
239
- def build_demeter_chain(mock, arg, &block)build_demeter_chain309,11874
240
- def check_proper_mock(mock, method_name)check_proper_mock334,12721
241
- def check_method_names(names)check_method_names344,13130
242
-
243
- lib/flexmock/noop.rb,0
244
-
245
- ,104
246
- class ObjectObject1,0
247
- def flexmock_singleton_defined?(method_name)flexmock_singleton_defined?2,13
248
-
249
- ,399
250
- class FlexMockFlexMock12,294
251
- module OrderingOrdering20,666
252
- def flexmock_allocate_orderflexmock_allocate_order23,733
253
- def flexmock_groupsflexmock_groups29,896
254
- def flexmock_current_orderflexmock_current_order34,1004
255
- def flexmock_current_order=(value)flexmock_current_order=39,1127
256
- def flexmock_validate_order(method_name, order_number)flexmock_validate_order43,1213
257
-
258
- lib/flexmock/partial_mock.rb,1813
259
- class FlexMockFlexMock14,319
260
- class PartialMockProxyPartialMockProxy26,949
261
- def initialize(obj, mock, safe_mode)initialize42,1368
262
- def flexmock_getflexmock_get58,1768
263
- def should_receive(*args)should_receive82,2708
264
- def flexmock_define_expectation(location, *args)flexmock_define_expectation87,2828
265
- def add_mock_method(method_name)add_mock_method98,3152
266
- def new_instances(*allocators, &block)new_instances130,4368
267
- def invoke_original(method, args)invoke_original155,5376
268
- def flexmock_invoke_original(method, args)flexmock_invoke_original161,5530
269
- def flexmock_verifyflexmock_verify167,5762
270
- def flexmock_teardownflexmock_teardown172,5898
271
- def flexmock_containerflexmock_container184,6236
272
- def flexmock_received?(*args)flexmock_received?189,6329
273
- def flexmock_callsflexmock_calls194,6436
274
- def flexmock_container=(container)flexmock_container=200,6623
275
- def flexmock_expectations_for(method_name)flexmock_expectations_for204,6739
276
- def check_allocate_method(allocate_method)check_allocate_method210,6859
277
- def sclasssclass217,7122
278
- def singleton?(method_name)singleton?221,7177
279
- def hide_existing_method(method_name)hide_existing_method231,7638
280
- def stow_existing_definition(method_name)stow_existing_definition238,7855
281
- def create_alias_for_existing_method(method_name)create_alias_for_existing_method258,8572
282
- def safe_alias_method(new_alias, method_name)safe_alias_method270,9014
283
- def define_proxy_method(method_name)define_proxy_method283,9375
284
- def restore_original_definition(method_name)restore_original_definition304,10133
285
- def remove_current_method(method_name)remove_current_method321,10604
286
- def detached?detached?326,10765
287
- def new_name(old_name)new_name331,10873
288
-
289
- ,665
290
- class FlexMockFlexMock3,20
291
- module MockContainerMockContainer4,35
292
- def rails_versionrails_version6,59
293
- def should_render_view(template_name=nil)should_render_view25,684
294
- def should_render_view_prior_version_124(template_name) # :nodoc:should_render_view_prior_version_12443,1310
295
- def should_render_view_after_version_124(template_name)should_render_view_after_version_12464,2093
296
- def should_render_view_after_version_202(template_name)should_render_view_after_version_20288,3015
297
- def should_render_view_22x(template_name)should_render_view_22x109,3813
298
- def should_render_view_23x(template_name)should_render_view_23x129,4575
299
-
300
- ,0
301
-
302
- lib/flexmock/recorder.rb,271
303
- class FlexMockFlexMock14,329
304
- class RecorderRecorder20,505
305
- def initialize(mock)initialize24,611
306
- def should_be_strict(is_strict=true)should_be_strict48,1543
307
- def strict?strict?53,1657
308
- def method_missing(sym, *args, &block)method_missing59,1787
309
-
310
- lib/flexmock/rspec/configure.rb,0
311
-
312
- lib/flexmock/rspec.rb,341
313
- class FlexMockFlexMock16,321
314
- class RSpecFrameworkAdapterRSpecFrameworkAdapter23,418
315
- def assert_block(msg, &block)assert_block24,448
316
- def assert_equal(a, b, msg=nil)assert_equal29,590
317
- class AssertionFailedError < StandardError; endAssertionFailedError34,753
318
- def assertion_failed_errorassertion_failed_error35,805
319
-
320
- �3�,778
321
- class FlexMockFlexMock3,35
322
- module RSpecMatchersRSpecMatchers4,50
323
- class HaveReceivedHaveReceived6,74
324
- def initialize(method_name)initialize9,126
325
- def matches?(spy)matches?18,332
326
- def failure_message_for_shouldfailure_message_for_should24,486
327
- def failure_message_for_should_notfailure_message_for_should_not28,604
328
- def with(*args)with32,735
329
- def with_a_blockwith_a_block37,802
330
- def without_a_blockwithout_a_block42,877
331
- def times(n)times47,956
332
- def nevernever52,1018
333
- def onceonce56,1062
334
- def twicetwice60,1105
335
- def on(on_count)on64,1149
336
- def and(&block)and69,1225
337
- def construct_optionsconstruct_options74,1312
338
- def have_received(method_name)have_received84,1537
339
-
340
- ,603
341
- class FlexMockFlexMock1,0
342
- module SpyDescribersSpyDescribers3,16
343
- def describe_spy_expectation(spy, sym, args, options={})describe_spy_expectation4,41
344
- def describe_spy_negative_expectation(spy, sym, args, options={})describe_spy_negative_expectation8,161
345
- def describe_spy(spy, sym, args, options, not_clause="")describe_spy14,313
346
- def describe_calls(spy)describe_calls26,733
347
- def times_description(times)times_description41,1280
348
- def block_description(needs_block)block_description56,1529
349
- def call_description(sym, args)call_description67,1736
350
-
351
- ,120
352
- class SymbolSymbol1,0
353
- def flexmock_as_nameflexmock_as_name5,58
354
- def flexmock_as_nameflexmock_as_name10,117
355
-
356
- ,120
357
- module TestTest14,336
358
- module UnitUnit15,348
359
- class TestCaseTestCase16,362
360
- def teardownteardown25,677
361
-
362
- ,328
363
- class FlexMockFlexMock3,35
364
- module TestUnitAssertionsTestUnitAssertions4,50
365
- def assert_spy_called(spy, method_name, *args)assert_spy_called7,115
366
- def assert_spy_not_called(spy, method_name, *args)assert_spy_not_called11,232
367
- def _assert_spy_called(negative, spy, method_name, *args)_assert_spy_called17,365
368
-
369
- lib/flexmock/test_unit_integration.rb,282
370
- class FlexMockFlexMock16,397
371
- module TestCaseTestCase30,954
372
- def teardownteardown37,1160
373
- class TestUnitFrameworkAdapterTestUnitFrameworkAdapter47,1367
374
- def assert_block(msg, &block)assert_block50,1436
375
- def assertion_failed_errorassertion_failed_error60,1697
376
-
377
- ,318
378
- class FlexMockFlexMock12,294
379
- class UndefinedUndefined17,465
380
- def method_missing(sym, *args, &block)method_missing18,483
381
- def to_sto_s22,546
382
- def inspectinspect26,588
383
- def cloneclone30,624
384
- def <=>(other)<=>34,658
385
- def coerce(other)coerce38,697
386
- def self.undefinedundefined47,902
387
-
388
- lib/flexmock/validators.rb,878
389
- class FlexMockFlexMock15,353
390
- class CountValidatorCountValidator20,489
391
- def initialize(expectation, limit)initialize23,549
392
- def eligible?(n)eligible?31,805
393
- def calls(n)calls36,875
394
- def describedescribe41,983
395
- def describe_limitdescribe_limit54,1165
396
- def validate_count(n, &block)validate_count58,1215
397
- class ExactCountValidator < CountValidatorExactCountValidator74,1741
398
- def validate(n)validate77,1865
399
- class AtLeastCountValidator < CountValidatorAtLeastCountValidator85,2079
400
- def validate(n)validate88,2205
401
- def describedescribe93,2325
402
- def eligible?(n)eligible?105,2668
403
- def describe_limitdescribe_limit109,2709
404
- class AtMostCountValidator < CountValidatorAtMostCountValidator117,2910
405
- def validate(n)validate119,3025
406
- def describedescribe124,3144
407
- def describe_limitdescribe_limit128,3195
408
-
409
- lib/flexmock/version.rb,58
410
- class FlexMockFlexMock1,0
411
- module VersionVersion2,15
412
-
413
- pjw_94jc0000gn/T//tags.zA7zNy,0
414
-
415
- ,0
416
-
417
- test/assert_spy_called_test.rb,1272
418
- class AssertSpyCalledTest < Test::Unit::TestCaseAssertSpyCalledTest6,95
419
- class FooBarFooBar9,174
420
- def foofoo10,189
421
- def barbar12,209
422
- def setupsetup16,236
423
- def spyspy21,298
424
- def test_assert_detects_basic_calltest_assert_detects_basic_call25,324
425
- def test_assert_detects_basic_call_with_argstest_assert_detects_basic_call_with_args30,412
426
- def test_assert_rejects_incorrect_argstest_assert_rejects_incorrect_args35,521
427
- def test_assert_detects_multiple_callstest_assert_detects_multiple_calls42,742
428
- def test_assert_rejects_incorrect_typetest_assert_rejects_incorrect_type49,873
429
- def test_assert_detects_blockstest_assert_detects_blocks57,1114
430
- def test_assert_detects_any_argstest_assert_detects_any_args64,1252
431
- def test_assert_rejects_bad_count_on_any_argstest_assert_rejects_bad_count_on_any_args72,1442
432
- def test_assert_error_lists_calls_actually_made_without_handled_bytest_assert_error_lists_calls_actually_made_without_handled_by79,1686
433
- def test_assert_error_lists_calls_actually_made_with_handled_bytest_assert_error_lists_calls_actually_made_with_handled_by91,2077
434
- def test_assert_errors_say_no_calls_madetest_assert_errors_say_no_calls_made103,2487
435
- def assert_fails(message_pattern)assert_fails111,2644
436
-
437
- test/base_class_test.rb,1070
438
- class BaseClassTest < Test::Unit::TestCaseBaseClassTest3,27
439
- class FooBarFooBar6,100
440
- def foofoo7,115
441
- def method_missing(sym, *args, &block)method_missing10,136
442
- def respond_to?(method)respond_to?15,235
443
- def mockmock20,309
444
- def test_base_class_auto_mocks_classtest_base_class_auto_mocks_class24,363
445
- def test_base_class_auto_mocks_base_class_methodstest_base_class_auto_mocks_base_class_methods28,445
446
- def test_base_class_does_not_mock_non_base_class_methodstest_base_class_does_not_mock_non_base_class_methods32,550
447
- def test_can_stub_existing_methodstest_can_stub_existing_methods38,675
448
- def test_can_not_stub_non_class_defined_methodstest_can_not_stub_non_class_defined_methods43,789
449
- def test_can_not_stub_non_class_methods_in_single_linetest_can_not_stub_non_class_methods_in_single_line52,1097
450
- def test_can_explicitly_stub_non_class_defined_methodstest_can_explicitly_stub_non_class_defined_methods61,1418
451
- def test_can_explicitly_stub_meta_programmed_methodstest_can_explicitly_stub_meta_programmed_methods66,1572
452
-
453
- test/container_methods_test.rb,1111
454
- class TestFlexmockContainerMethods < Test::Unit::TestCaseTestFlexmockContainerMethods15,379
455
- def test_simple_mock_creationtest_simple_mock_creation18,467
456
- def test_mock_with_nametest_mock_with_name24,606
457
- def test_mock_with_symbol_nametest_mock_with_symbol_name31,803
458
- def test_mock_with_hashtest_mock_with_hash38,1006
459
- def test_mock_with_name_and_hashtest_mock_with_name_and_hash44,1149
460
- def test_mock_with_name_hash_and_blocktest_mock_with_name_hash_and_block53,1445
461
- def test_basic_stubtest_basic_stub61,1666
462
- def test_basic_stub_with_nametest_basic_stub_with_name68,1826
463
- def test_stub_with_quick_definitionstest_stub_with_quick_definitions76,2076
464
- def test_stub_with_name_quick_definitionstest_stub_with_name_quick_definitions82,2213
465
- def test_stubs_are_auto_verifiedtest_stubs_are_auto_verified91,2525
466
- def test_stubbing_a_stringtest_stubbing_a_string98,2710
467
- def test_multiple_stubs_work_with_same_partial_mock_proxytest_multiple_stubs_work_with_same_partial_mock_proxy104,2828
468
- def test_multiple_stubs_layer_behaviortest_multiple_stubs_layer_behavior111,2998
469
-
470
- ,473
471
- class TestFlexmockDefaultFrameworkAdapter < Test::Unit::TestCaseTestFlexmockDefaultFrameworkAdapter14,321
472
- def setupsetup15,386
473
- def test_assert_block_raises_exceptiontest_assert_block_raises_exception19,458
474
- def test_assert_block_doesnt_raise_exceptiontest_assert_block_doesnt_raise_exception25,645
475
- def test_assert_equal_doesnt_raise_exceptiontest_assert_equal_doesnt_raise_exception29,753
476
- def test_assert_equal_can_failtest_assert_equal_can_fail33,857
477
-
478
- ,1568
479
- class TestDemeterMocking < Test::Unit::TestCaseTestDemeterMocking5,48
480
- def test_demeter_mockingtest_demeter_mocking8,126
481
- def test_demeter_mocking_with_operatorstest_demeter_mocking_with_operators16,353
482
- def test_demeter_mocking_with_multiple_operatorstest_demeter_mocking_with_multiple_operators25,642
483
- def test_multiple_demeter_mocks_on_same_branch_is_oktest_multiple_demeter_mocks_on_same_branch_is_ok31,803
484
- def test_multi_level_deep_demeter_violationtest_multi_level_deep_demeter_violation39,1095
485
- def test_final_method_can_have_multiple_expecationstest_final_method_can_have_multiple_expecations45,1280
486
- def test_conflicting_mock_declarations_raises_an_errortest_conflicting_mock_declarations_raises_an_error53,1571
487
- def test_conflicting_mock_declarations_in_reverse_order_does_not_raise_errortest_conflicting_mock_declarations_in_reverse_order_does_not_raise_error65,1976
488
- def test_preestablishing_existing_mock_is_oktest_preestablishing_existing_mock_is_ok75,2318
489
- def test_quick_defs_can_use_demeter_mockingtest_quick_defs_can_use_demeter_mocking83,2581
490
- def test_quick_defs_can_use_demeter_mocking_twotest_quick_defs_can_use_demeter_mocking_two93,2890
491
- def test_errors_on_ill_formed_method_namestest_errors_on_ill_formed_method_names100,3119
492
- def test_no_errors_on_well_formed_method_namestest_no_errors_on_well_formed_method_names109,3373
493
- def test_readme_example_1test_readme_example_1118,3591
494
- def test_readme_example_2test_readme_example_2128,3965
495
- def test_readme_example_3test_readme_example_3134,4166
496
-
497
- test/deprecated_methods_test.rb,2237
498
- class TestFlexMock < Test::Unit::TestCaseTestFlexMock15,359
499
- def s(&block)s19,465
500
- def setupsetup23,515
501
- def test_handletest_handle27,563
502
- def test_handle_no_blocktest_handle_no_block34,707
503
- def test_called_with_blocktest_called_with_block40,837
504
- def test_return_valuetest_return_value47,1035
505
- def test_handle_missing_methodtest_handle_missing_method52,1140
506
- def test_ignore_missing_methodtest_ignore_missing_method60,1370
507
- def test_good_countstest_good_counts66,1501
508
- def test_bad_countstest_bad_counts74,1640
509
- def test_undetermined_countstest_undetermined_counts85,1847
510
- def test_zero_countstest_zero_counts94,1992
511
- def test_file_io_with_usetest_file_io_with_use103,2161
512
- def count_lines(stream)count_lines111,2358
513
- def test_usetest_use119,2465
514
- def test_failures_during_usetest_failures_during_use128,2612
515
- def test_sequential_valuestest_sequential_values138,2831
516
- def test_respond_to_returns_false_for_non_handled_methodstest_respond_to_returns_false_for_non_handled_methods147,3063
517
- def test_respond_to_returns_true_for_explicit_methodstest_respond_to_returns_true_for_explicit_methods151,3198
518
- def test_respond_to_returns_true_for_missing_methods_when_ignoring_missingtest_respond_to_returns_true_for_missing_methods_when_ignoring_missing156,3357
519
- 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_should161,3538
520
- def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown166,3734
521
- def test_method_returns_callable_proctest_method_returns_callable_proc172,3852
522
- def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods181,4112
523
- class TestDeprecatedOrderingMethods < Test::Unit::TestCaseTestDeprecatedOrderingMethods189,4339
524
- def test_deprecated_ordering_methodstest_deprecated_ordering_methods193,4462
525
- class TestAnyInstance < Test::Unit::TestCaseTestAnyInstance205,4858
526
- class DogDog209,4967
527
- def barkbark210,4979
528
- def test_any_instance_still_works_for_backwards_compatibilitytest_any_instance_still_works_for_backwards_compatibility215,5019
529
-
530
- ,1206
531
- class TemperatureSamplerTemperatureSampler14,321
532
- def initialize(sensor)initialize15,346
533
- def average_tempaverage_temp19,399
534
- class TestTemperatureSampler < Test::Unit::TestCaseTestTemperatureSampler25,526
535
- def test_tempurature_samplertest_tempurature_sampler28,608
536
- class TestExamplesFromReadme < Test::Unit::TestCaseTestExamplesFromReadme37,887
537
- def test_simple_return_valuestest_simple_return_values40,969
538
- def test_returning_an_undefined_valuetest_returning_an_undefined_value46,1109
539
- def test_dbtest_db52,1247
540
- def test_query_and_updatetest_query_and_update61,1477
541
- def test_ordered_queriestest_ordered_queries70,1730
542
- def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode88,2327
543
- def test_build_xmltest_build_xml105,2859
544
- def known_good_way_to_build_xml(rec)known_good_way_to_build_xml114,3114
545
- def new_way_to_build_xml(rec)new_way_to_build_xml119,3184
546
- def test_multiple_getstest_multiple_gets123,3272
547
- def test_an_important_messagetest_an_important_message132,3517
548
- class QuoteServiceQuoteService141,3747
549
- class PortfolioPortfolio143,3774
550
- def valuevalue144,3792
551
- def test_portfolio_valuetest_portfolio_value149,3850
552
-
553
- test/expectation_description_test.rb,782
554
- class ExpectationDescriptionTest < Test::Unit::TestCaseExpectationDescriptionTest14,321
555
- def setupsetup17,407
556
- def test_basic_descriptiontest_basic_description22,518
557
- def test_with_no_argstest_with_no_args26,612
558
- def test_with_simple_argstest_with_simple_args31,724
559
- def test_with_nevertest_with_never36,856
560
- def test_with_oncetest_with_once41,964
561
- def test_with_twicetest_with_twice46,1069
562
- def test_with_3test_with_351,1177
563
- def test_with_at_least_oncetest_with_at_least_once56,1287
564
- def test_with_at_least_10test_with_at_least_1061,1419
565
- def test_with_at_most_oncetest_with_at_most_once66,1559
566
- def test_with_zero_or_more_timestest_with_zero_or_more_times71,1688
567
- def test_with_at_least_1_at_most_10test_with_at_least_1_at_most_1076,1843
568
-
569
- test/extended_should_receive_test.rb,808
570
- module ExtendedShouldReceiveTestsExtendedShouldReceiveTests14,321
571
- def test_accepts_expectation_hashtest_accepts_expectation_hash15,355
572
- def test_accepts_list_of_methodstest_accepts_list_of_methods21,519
573
- def test_contraints_apply_to_all_expectationstest_contraints_apply_to_all_expectations28,677
574
- def test_count_contraints_apply_to_all_expectationstest_count_contraints_apply_to_all_expectations35,944
575
- def test_multiple_should_receives_are_allowedtest_multiple_should_receives_are_allowed41,1135
576
- class TestExtendedShouldReceiveOnFullMocks < Test::Unit::TestCaseTestExtendedShouldReceiveOnFullMocks49,1352
577
- def setupsetup53,1485
578
- class TestExtendedShouldReceiveOnPartialMockProxies < Test::Unit::TestCaseTestExtendedShouldReceiveOnPartialMockProxies60,1555
579
- def setupsetup64,1697
580
-
581
- `��:�,528
582
- class DummyModelDummyModel5,48
583
- class ChildModel < DummyModelChildModel8,70
584
- class TestFlexModel < Test::Unit::TestCaseTestFlexModel12,176
585
- def test_initial_conditionstest_initial_conditions15,249
586
- def test_classifying_mock_modelstest_classifying_mock_models27,650
587
- def test_mock_models_have_different_idstest_mock_models_have_different_ids37,897
588
- def test_mock_models_can_have_quick_defstest_mock_models_can_have_quick_defs43,1048
589
- def test_mock_models_can_have_blockstest_mock_models_can_have_blocks48,1188
590
-
591
- test/naming_test.rb,816
592
- class TestNaming < Test::Unit::TestCaseTestNaming14,321
593
- def test_nametest_name17,391
594
- def test_name_in_no_handler_found_errortest_name_in_no_handler_found_error22,474
595
- def test_name_in_received_count_errortest_name_in_received_count_error31,690
596
- def test_naming_with_usetest_naming_with_use40,910
597
- def test_naming_with_multiple_mocks_in_usetest_naming_with_multiple_mocks_in_use46,1027
598
- def test_inspect_returns_reasonable_nametest_inspect_returns_reasonable_name53,1215
599
- def test_mock_can_override_inspecttest_mock_can_override_inspect60,1399
600
- class DummyDummy67,1602
601
- def inspectinspect68,1616
602
- def test_partial_mocks_use_original_inspecttest_partial_mocks_use_original_inspect73,1669
603
- def test_partial_mocks_can_override_inspecttest_partial_mocks_can_override_inspect79,1833
604
-
605
- test/new_instances_test.rb,2428
606
- class TestNewInstances < Test::Unit::TestCaseTestNewInstances14,321
607
- class DogDog18,431
608
- def barkbark19,443
609
- def wagwag22,476
610
- def self.makemake25,508
611
- class CatCat30,551
612
- def initialize(name, &block)initialize32,585
613
- class ConnectionConnection38,691
614
- def initialize(*args)initialize39,710
615
- def send(args)send42,778
616
- def post(args)post45,822
617
- def test_new_instances_allows_stubbing_of_existing_methodstest_new_instances_allows_stubbing_of_existing_methods50,873
618
- def test_new_instances_stubs_still_have_existing_methodstest_new_instances_stubs_still_have_existing_methods58,1094
619
- def test_new_instances_will_pass_args_to_newtest_new_instances_will_pass_args_to_new66,1309
620
- def test_new_gets_block_after_restubbingtest_new_gets_block_after_restubbing79,1715
621
- def test_new_instances_stub_verification_happens_on_teardowntest_new_instances_stub_verification_happens_on_teardown92,2036
622
- def test_new_instances_reports_error_on_non_classestest_new_instances_reports_error_on_non_classes102,2375
623
- def test_does_not_by_default_stub_objects_created_with_allocatetest_does_not_by_default_stub_objects_created_with_allocate112,2654
624
- def test_explicitly_mocking_allocation_in_new_instances_fails_in_ruby_19test_explicitly_mocking_allocation_in_new_instances_fails_in_ruby_19121,2909
625
- def test_can_explicitly_stub_objects_created_with_allocatetest_can_explicitly_stub_objects_created_with_allocate129,3179
626
- def test_can_stub_objects_created_with_arbitrary_class_methodstest_can_stub_objects_created_with_arbitrary_class_methods138,3436
627
- def test_stubbing_arbitrary_class_methods_leaves_new_alonetest_stubbing_arbitrary_class_methods_leaves_new_alone145,3659
628
- def test_stubbing_new_and_allocate_doesnt_double_stub_objects_on_newtest_stubbing_new_and_allocate_doesnt_double_stub_objects_on_new152,3874
629
- def test_blocks_on_new_do_not_have_stubs_installedtest_blocks_on_new_do_not_have_stubs_installed165,4327
630
- def test_new_instances_accept_chained_expectationstest_new_instances_accept_chained_expectations179,4665
631
- def test_fancy_use_of_chained_should_receivedtest_fancy_use_of_chained_should_received187,4935
632
- def test_writable_accessorstest_writable_accessors192,5090
633
- def test_ordering_can_be_specifiedtest_ordering_can_be_specified198,5235
634
- def test_ordering_can_be_specified_in_groupstest_ordering_can_be_specified_in_groups206,5429
635
-
636
- test/object_extensions_test.rb,377
637
- class ObjectExtensionsTest < Test::Unit::TestCaseObjectExtensionsTest6,85
638
- def setupsetup7,135
639
- def test_undefined_methods_are_not_singletonstest_undefined_methods_are_not_singletons14,215
640
- def test_normal_methods_are_not_singletonstest_normal_methods_are_not_singletons18,324
641
- def test_singleton_methods_are_singletonstest_singleton_methods_are_singletons22,429
642
-
643
- test/partial_mock_test.rb,6105
644
- class TestStubbing < Test::Unit::TestCaseTestStubbing14,321
645
- class DogDog17,393
646
- def barkbark18,405
647
- def Dog.createcreate21,438
648
- class DogPlus < DogDogPlus26,487
649
- def should_receiveshould_receive27,509
650
- def new_instancesnew_instances30,558
651
- def by_defaultby_default33,603
652
- def test_attempting_to_partially_mock_existing_mock_is_nooptest_attempting_to_partially_mock_existing_mock_is_noop38,659
653
- def test_stub_command_add_behavior_to_arbitrary_objectstest_stub_command_add_behavior_to_arbitrary_objects44,844
654
- def test_stub_command_can_configure_via_blocktest_stub_command_can_configure_via_block50,1028
655
- def test_stubbed_methods_can_take_blockstest_stubbed_methods_can_take_blocks58,1225
656
- def test_multiple_stubs_on_the_same_object_reuse_the_same_partial_mocktest_multiple_stubs_on_the_same_object_reuse_the_same_partial_mock65,1450
657
- def test_stubbed_methods_can_invoke_original_behavior_directlytest_stubbed_methods_can_invoke_original_behavior_directly70,1597
658
- def test_stubbed_methods_can_invoke_original_behavior_with_modificationtest_stubbed_methods_can_invoke_original_behavior_with_modification76,1775
659
- def test_stubbed_methods_returning_partial_mockstest_stubbed_methods_returning_partial_mocks82,1995
660
- def test_multiple_methods_can_be_stubbedtest_multiple_methods_can_be_stubbed91,2245
661
- def test_original_behavior_can_be_restoredtest_original_behavior_can_be_restored99,2497
662
- def test_original_missing_behavior_can_be_restoredtest_original_missing_behavior_can_be_restored109,2832
663
- def test_multiple_stubs_on_single_method_can_be_restored_missing_methodtest_multiple_stubs_on_single_method_can_be_restored_missing_method118,3111
664
- def test_original_behavior_is_restored_when_multiple_methods_are_mockedtest_original_behavior_is_restored_when_multiple_methods_are_mocked129,3520
665
- def test_original_behavior_is_restored_on_class_objectstest_original_behavior_is_restored_on_class_objects138,3849
666
- def test_original_behavior_is_restored_on_singleton_methodstest_original_behavior_is_restored_on_singleton_methods145,4096
667
- def obj.hi() :hello endhi147,4179
668
- def test_original_behavior_is_restored_on_singleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_singleton_methods_with_multiple_stubs155,4375
669
- def obj.hi(n) "hello#{n}" endhi157,4478
670
- def test_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubs167,4799
671
- def test_stubbing_file_shouldnt_break_writingtest_stubbing_file_shouldnt_break_writing183,5293
672
- def test_original_behavior_is_restored_even_when_errorstest_original_behavior_is_restored_even_when_errors199,5732
673
- def m.flexmock_verify() endflexmock_verify211,6109
674
- def test_not_calling_stubbed_method_is_an_errortest_not_calling_stubbed_method_is_an_error214,6148
675
- def test_mock_is_verified_when_the_stub_is_verifiedtest_mock_is_verified_when_the_stub_is_verified223,6366
676
- def test_stub_can_have_explicit_nametest_stub_can_have_explicit_name232,6623
677
- def test_unamed_stub_will_use_default_naming_conventiontest_unamed_stub_will_use_default_naming_convention238,6802
678
- def test_partials_can_be_defined_in_a_blocktest_partials_can_be_defined_in_a_block244,6998
679
- def test_partials_defining_block_return_real_obj_not_proxytest_partials_defining_block_return_real_obj_not_proxy252,7185
680
- def test_partial_mocks_always_return_domain_objecttest_partial_mocks_always_return_domain_object259,7379
681
- def test_domain_objects_do_not_have_mock_methodstest_domain_objects_do_not_have_mock_methods270,7659
682
- def test_partial_mocks_have_mock_methodstest_partial_mocks_have_mock_methods277,7851
683
- def test_partial_mocks_do_not_have_mock_methods_after_teardowntest_partial_mocks_do_not_have_mock_methods_after_teardown285,8047
684
- class NoMethodsNoMethods299,8639
685
- def methods(arg = true)methods300,8657
686
- def xtest_object_methods_method_is_not_used_in_singleton_checksxtest_object_methods_method_is_not_used_in_singleton_checks305,8757
687
- def obj.mock() :original endmock307,8847
688
- def test_partial_mocks_with_mock_method_singleton_colision_have_original_defs_restoredtest_partial_mocks_with_mock_method_singleton_colision_have_original_defs_restored311,8932
689
- def dog.mock() :original endmock313,9039
690
- class MockColisionMockColision319,9160
691
- def mockmock320,9181
692
- 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_restored325,9225
693
- def test_safe_partial_mocks_do_not_support_mock_methodstest_safe_partial_mocks_do_not_support_mock_methods332,9429
694
- def test_safe_partial_mocks_require_blocktest_safe_partial_mocks_require_block340,9657
695
- def test_safe_partial_mocks_are_actually_mockedtest_safe_partial_mocks_are_actually_mocked345,9790
696
- def test_should_receive_does_not_override_preexisting_deftest_should_receive_does_not_override_preexisting_def350,9960
697
- def test_should_receive_does_override_should_receive_preexisting_deftest_should_receive_does_override_should_receive_preexisting_def356,10160
698
- class LiarLiar361,10344
699
- def respond_to?(method_name)respond_to?362,10357
700
- def test_liar_actually_liestest_liar_actually_lies372,10526
701
- 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_there378,10678
702
- class MetaDog < DogMetaDog384,10863
703
- def method_missing(method, *args, &block)method_missing385,10885
704
- def respond_to_missing?(method, *)respond_to_missing?392,11019
705
- def test_partial_mock_where_method_created_by_method_missing_and_respond_to_missingtest_partial_mock_where_method_created_by_method_missing_and_respond_to_missing397,11105
706
- class ValueObjectValueObject408,11531
707
- def initialize(val)initialize411,11573
708
- def ==(other)==415,11623
709
- def test_partial_mocks_in_the_presense_of_equal_definitiontest_partial_mocks_in_the_presense_of_equal_definition420,11680
710
-
711
- test/rails_view_stub_test.rb,1492
712
- module ViewTestsViewTests6,86
713
- def test_view_mocks_as_stubtest_view_mocks_as_stub7,103
714
- def test_fails_if_no_rendertest_fails_if_no_render12,197
715
- def test_view_mocks_with_expectationtest_view_mocks_with_expectation19,331
716
- def test_view_mocks_with_expectation_fails_with_different_templatetest_view_mocks_with_expectation_fails_with_different_template24,435
717
- def test_view_mocks_with_expectation_and_multiple_templatestest_view_mocks_with_expectation_and_multiple_templates32,644
718
- def pretend_to_be_rails_version(version)pretend_to_be_rails_version39,820
719
- class TestRailsViewStubForVersionsUpTo_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsUpTo_1_2_445,1015
720
- def setupsetup49,1133
721
- def render(*names)render56,1362
722
- class TestRailsViewStubForVersionsAfter_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_1_2_470,1640
723
- def setupsetup74,1759
724
- def render(*names)render82,2032
725
- class TestRailsViewStubForVersionsAfter_2_0_2 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_2_0_297,2334
726
- def setupsetup101,2453
727
- def render(*names)render109,2728
728
- class FlexMockFlexMock123,2983
729
- module MockContainerMockContainer124,2998
730
- module RailsRails125,3021
731
- module VERSIONVERSION126,3038
732
- class TestRailsVersion < Test::Unit::TestCaseTestRailsVersion133,3107
733
- def test_rails_version_to_get_code_coveragetest_rails_version_to_get_code_coverage135,3182
734
- module ActionViewActionView142,3280
735
- class BaseBase143,3298
736
-
737
- test/record_mode_test.rb,1339
738
- class TestRecordMode < Test::Unit::TestCaseTestRecordMode14,321
739
- def test_recording_mode_workstest_recording_mode_works17,395
740
- def test_arguments_are_passed_to_recording_mode_blocktest_arguments_are_passed_to_recording_mode_block25,569
741
- def test_recording_mode_handles_multiple_returnstest_recording_mode_handles_multiple_returns36,833
742
- def test_recording_mode_does_not_specify_ordertest_recording_mode_does_not_specify_order50,1243
743
- def test_recording_mode_gets_block_args_tootest_recording_mode_gets_block_args_too61,1478
744
- def test_recording_mode_should_validate_args_with_equalstest_recording_mode_should_validate_args_with_equals73,1748
745
- def test_recording_mode_should_allow_arg_contraint_validationtest_recording_mode_should_allow_arg_contraint_validation84,2013
746
- def test_recording_mode_should_handle_multiplicity_contraintstest_recording_mode_should_handle_multiplicity_contraints95,2283
747
- def test_strict_record_mode_requires_exact_argument_matchestest_strict_record_mode_requires_exact_argument_matches107,2564
748
- def test_strict_record_mode_requires_exact_orderingtest_strict_record_mode_requires_exact_ordering119,2873
749
- def test_strict_record_mode_requires_oncetest_strict_record_mode_requires_once133,3205
750
- def test_strict_record_mode_can_not_failtest_strict_record_mode_can_not_fail146,3508
751
-
752
- test/redirect_error.rb,114
753
- class FlexMockFlexMock3,20
754
- module RedirectErrorRedirectError4,35
755
- def redirect_errorredirect_error5,58
756
-
757
- ,0
758
-
759
- test/rspec_integration/spy_example_spec.rb,134
760
- class DogDog8,106
761
- def wags(arg)wags9,118
762
- def barksbarks13,179
763
- def should_fail(message_pattern)should_fail197,4898
764
-
765
- ,2164
766
- class TestSamples < Test::Unit::TestCaseTestSamples16,347
767
- def test_file_iotest_file_io24,717
768
- def count_lines(file)count_lines32,968
769
- class TestUndefined < Test::Unit::TestCaseTestUndefined42,1061
770
- def test_undefined_valuestest_undefined_values45,1134
771
- class TestSimple < Test::Unit::TestCaseTestSimple54,1320
772
- def test_simple_mocktest_simple_mock57,1390
773
- class TestDog < Test::Unit::TestCaseTestDog64,1525
774
- def test_dog_wagstest_dog_wags67,1592
775
- class WooferWoofer73,1703
776
- class DogDog76,1721
777
- def initializeinitialize77,1731
778
- def barkbark80,1779
779
- def wagwag83,1813
780
- class TestDogBarking < Test::Unit::TestCaseTestDogBarking88,1845
781
- def setupsetup93,2007
782
- def test_dogtest_dog98,2080
783
- class TestDogBarkingWithNewInstances < Test::Unit::TestCaseTestDogBarkingWithNewInstances104,2211
784
- def setupsetup109,2375
785
- def test_dogtest_dog113,2460
786
- class TestDefaults < Test::Unit::TestCaseTestDefaults119,2594
787
- def setupsetup122,2666
788
- def test_something_where_bark_must_be_called_oncetest_something_where_bark_must_be_called_once127,2793
789
- class TestDemeter < Test::Unit::TestCaseTestDemeter135,2995
790
- def test_manual_mockingtest_manual_mocking137,3065
791
- def test_demetertest_demeter150,3499
792
- class TestDb < Test::Unit::TestCaseTestDb160,3714
793
- def test_dbtest_db163,3780
794
- class TestDb < Test::Unit::TestCaseTestDb174,3985
795
- def test_query_and_updatetest_query_and_update177,4051
796
- def test_ordered_queriestest_ordered_queries188,4328
797
- def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode206,4868
798
- def known_good_way_to_build_xml(builder)known_good_way_to_build_xml223,5343
799
- def new_way_to_build_xml(builder)new_way_to_build_xml227,5410
800
- def test_build_xmltest_build_xml231,5494
801
- class TestMoreSamples < Test::Unit::TestCaseTestMoreSamples242,5754
802
- def test_multiple_getstest_multiple_gets245,5829
803
- def test_an_important_messagetest_an_important_message254,6074
804
- class QuoteServiceQuoteService263,6335
805
- class PortfolioPortfolio266,6363
806
- def initializeinitialize267,6381
807
- def valuevalue270,6448
808
- def test_portfolio_valuetest_portfolio_value275,6504
809
-
810
- ,1266
811
- class TestShouldIgnoreMissing < Test::Unit::TestCaseTestShouldIgnoreMissing14,321
812
- def setupsetup17,404
813
- def test_mocks_do_not_respond_to_undefined_methodstest_mocks_do_not_respond_to_undefined_methods21,452
814
- def test_mocks_do_respond_to_defined_methodstest_mocks_do_respond_to_defined_methods25,556
815
- def test_mocks_do_respond_to_any_method_when_ignoring_missingtest_mocks_do_respond_to_any_method_when_ignoring_missing30,696
816
- def test_should_ignore_missing_returns_mocktest_should_ignore_missing_returns_mock35,842
817
- def test_ignored_methods_return_undefinedtest_ignored_methods_return_undefined40,967
818
- def test_undefined_mocking_with_argumentstest_undefined_mocking_with_arguments46,1141
819
- def test_method_chains_with_undefined_are_self_preservingtest_method_chains_with_undefined_are_self_preserving51,1289
820
- def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown56,1454
821
- def test_method_returns_callable_proctest_method_returns_callable_proc62,1578
822
- def test_not_calling_method_proc_will_fail_count_constraintstest_not_calling_method_proc_will_fail_count_constraints69,1766
823
- def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods78,2028
824
-
825
- ,11666
826
- def mock_top_level_functionmock_top_level_function14,321
827
- module KernelKernel18,362
828
- def mock_kernel_functionmock_kernel_function19,376
829
- class CatCat25,442
830
- def purrpurr26,452
831
- def meowmeow28,469
832
- class TestFlexMockShoulds < Test::Unit::TestCaseTestFlexMockShoulds32,491
833
- def test_defaultstest_defaults43,957
834
- def test_returns_with_valuetest_returns_with_value52,1125
835
- def test_returns_with_multiple_valuestest_returns_with_multiple_values60,1292
836
- def test_multiple_returnstest_multiple_returns71,1552
837
- def test_returns_with_blocktest_returns_with_block82,1812
838
- def test_block_example_from_readmetest_block_example_from_readme91,2015
839
- def test_return_with_and_without_block_interleavedtest_return_with_and_without_block_interleaved101,2311
840
- def test_and_returns_aliastest_and_returns_alias111,2591
841
- def test_and_return_undefinedtest_and_return_undefined118,2728
842
- def test_and_yield_will_continue_to_yield_the_same_valuetest_and_yield_will_continue_to_yield_the_same_value128,3077
843
- def test_and_yield_with_multiple_values_yields_the_valuestest_and_yield_with_multiple_values_yields_the_values136,3323
844
- def test_multiple_yields_are_done_sequentiallytest_multiple_yields_are_done_sequentially143,3533
845
- def test_multiple_yields_and_multiple_returns_are_syncedtest_multiple_yields_and_multiple_returns_are_synced152,3805
846
- def test_failure_if_no_block_giventest_failure_if_no_block_given165,4322
847
- def test_failure_different_return_value_than_yield_returntest_failure_different_return_value_than_yield_return172,4505
848
- def test_multiple_yieldstest_multiple_yields181,4791
849
- def test_multiple_yields_will_yield_the_last_value_settest_multiple_yields_will_yield_the_last_value_set189,5029
850
- def test_yielding_then_not_yielding_and_then_yielding_againtest_yielding_then_not_yielding_and_then_yielding_again200,5406
851
- def test_yields_syntaxtest_yields_syntax211,5753
852
- class MyError < RuntimeErrorMyError218,5898
853
- def test_and_raises_with_exception_class_throws_exceptiontest_and_raises_with_exception_class_throws_exception221,5936
854
- def test_and_raises_with_arguments_throws_exception_made_with_argstest_and_raises_with_arguments_throws_exception_made_with_args230,6145
855
- def test_and_raises_with_a_specific_exception_throws_the_exceptiontest_and_raises_with_a_specific_exception_throws_the_exception240,6426
856
- def test_raises_is_an_alias_for_and_raisetest_raises_is_an_alias_for_and_raise251,6696
857
- def test_multiple_and_raise_clauses_will_be_done_sequentiallytest_multiple_and_raise_clauses_will_be_done_sequentially260,6896
858
- def test_and_throw_will_throw_a_symboltest_and_throw_will_throw_a_symbol272,7294
859
- def test_and_throw_with_expression_will_throwtest_and_throw_with_expression_will_throw283,7537
860
- def test_throws_is_an_alias_for_and_throwtest_throws_is_an_alias_for_and_throw294,7819
861
- def test_multiple_throws_will_be_done_sequentiallytest_multiple_throws_will_be_done_sequentially305,8094
862
- def test_pass_thru_just_returns_undefined_on_mockstest_pass_thru_just_returns_undefined_on_mocks317,8424
863
- def test_multiple_expectationstest_multiple_expectations324,8598
864
- def test_with_no_args_with_no_argstest_with_no_args_with_no_args334,8829
865
- def test_with_no_args_but_with_argstest_with_no_args_but_with_args341,8957
866
- def test_with_any_argstest_with_any_args350,9182
867
- def test_with_any_single_arg_matchingtest_with_any_single_arg_matching360,9360
868
- def test_with_any_single_arg_nonmatchingtest_with_any_single_arg_nonmatching368,9553
869
- def test_with_equal_arg_matchingtest_with_equal_arg_matching378,9788
870
- def test_with_ducktype_arg_matchingtest_with_ducktype_arg_matching385,9951
871
- def test_with_ducktype_arg_matching_no_matchtest_with_ducktype_arg_matching_no_match392,10130
872
- def test_with_hash_matchingtest_with_hash_matching401,10395
873
- def test_with_hash_non_matchingtest_with_hash_non_matching408,10583
874
- def test_with_equal_arg_nonmatchingtest_with_equal_arg_nonmatching417,10844
875
- def test_with_optional_proctest_with_optional_proc426,11081
876
- def test_with_optional_proc_and_missing_proctest_with_optional_proc_and_missing_proc433,11229
877
- def test_with_optional_proc_distinquishes_between_nil_and_missingtest_with_optional_proc_distinquishes_between_nil_and_missing440,11390
878
- def test_with_arbitrary_arg_matchingtest_with_arbitrary_arg_matching448,11621
879
- def test_args_matching_with_regextest_args_matching_with_regex463,12052
880
- def test_arg_matching_with_regex_matching_non_stringtest_arg_matching_with_regex_matching_non_string475,12373
881
- def test_arg_matching_with_classtest_arg_matching_with_class482,12550
882
- def test_arg_matching_with_no_matchtest_arg_matching_with_no_match493,12834
883
- def test_arg_matching_with_string_doesnt_over_matchtest_arg_matching_with_string_doesnt_over_match502,13082
884
- def test_block_arg_given_to_no_argstest_block_arg_given_to_no_args511,13353
885
- def test_block_arg_given_to_matching_proctest_block_arg_given_to_matching_proc520,13609
886
- def test_arg_matching_precedence_when_best_firsttest_arg_matching_precedence_when_best_first531,13894
887
- def test_arg_matching_precedence_when_best_last_but_still_matches_firsttest_arg_matching_precedence_when_best_last_but_still_matches_first539,14103
888
- def test_never_and_never_calledtest_never_and_never_called547,14335
889
- def test_never_and_called_oncetest_never_and_called_once553,14450
890
- def test_once_called_oncetest_once_called_once562,14689
891
- def test_once_but_never_calledtest_once_but_never_called569,14823
892
- def test_once_but_called_twicetest_once_but_called_twice577,15042
893
- def test_twice_and_called_twicetest_twice_and_called_twice587,15293
894
- def test_zero_or_more_called_zerotest_zero_or_more_called_zero595,15448
895
- def test_zero_or_more_called_oncetest_zero_or_more_called_once601,15570
896
- def test_zero_or_more_called_100test_zero_or_more_called_100608,15703
897
- def test_timestest_times615,15849
898
- def test_at_least_called_oncetest_at_least_called_once622,15990
899
- def test_at_least_but_never_calledtest_at_least_but_never_called629,16137
900
- def test_at_least_once_but_called_twicetest_at_least_once_but_called_twice637,16372
901
- def test_at_least_and_exacttest_at_least_and_exact645,16543
902
- def test_at_most_but_never_calledtest_at_most_but_never_called655,16805
903
- def test_at_most_called_oncetest_at_most_called_once661,16941
904
- def test_at_most_called_twicetest_at_most_called_twice668,17086
905
- def test_at_most_and_at_least_called_nevertest_at_most_and_at_least_called_never679,17394
906
- def test_at_most_and_at_least_called_oncetest_at_most_and_at_least_called_once688,17700
907
- def test_at_most_and_at_least_called_twicetest_at_most_and_at_least_called_twice695,17873
908
- def test_at_most_and_at_least_called_three_timestest_at_most_and_at_least_called_three_times703,18061
909
- def test_call_counts_only_apply_to_matching_argstest_call_counts_only_apply_to_matching_args714,18371
910
- def test_call_counts_only_apply_to_matching_args_with_mismatchtest_call_counts_only_apply_to_matching_args_with_mismatch726,18649
911
- def test_ordered_calls_in_order_will_passtest_ordered_calls_in_order_will_pass742,19119
912
- def test_ordered_calls_out_of_order_will_failtest_ordered_calls_out_of_order_will_fail752,19301
913
- def test_order_calls_with_different_arg_lists_and_in_order_will_passtest_order_calls_with_different_arg_lists_and_in_order_will_pass764,19609
914
- 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_fail774,19856
915
- def test_unordered_calls_do_not_effect_ordered_testingtest_unordered_calls_do_not_effect_ordered_testing786,20229
916
- def test_ordered_with_multiple_calls_will_passtest_ordered_with_multiple_calls_will_pass800,20493
917
- def test_grouped_ordering_with_numberstest_grouped_ordering_with_numbers812,20702
918
- def test_grouped_ordering_with_symbolstest_grouped_ordering_with_symbols827,21017
919
- def test_explicit_ordering_mixed_with_implicit_ordering_should_not_overlaptest_explicit_ordering_mixed_with_implicit_ordering_should_not_overlap842,21373
920
- def test_explicit_ordering_with_explicit_misorderstest_explicit_ordering_with_explicit_misorders852,21746
921
- def test_ordering_with_explicit_no_args_matches_correctlytest_ordering_with_explicit_no_args_matches_correctly868,22321
922
- def test_ordering_with_any_arg_matching_correctly_matchestest_ordering_with_any_arg_matching_correctly_matches880,22694
923
- def test_ordering_between_mocks_is_not_normally_definedtest_ordering_between_mocks_is_not_normally_defined891,23002
924
- def test_ordering_between_mocks_is_honored_for_global_orderingtest_ordering_between_mocks_is_honored_for_global_ordering903,23256
925
- def test_expectation_formatingtest_expectation_formating915,23612
926
- def test_multi_expectation_formattingtest_multi_expectation_formatting924,23840
927
- def test_explicit_ordering_with_limits_allow_multiple_return_valuestest_explicit_ordering_with_limits_allow_multiple_return_values930,24003
928
- def test_global_methods_can_be_mockedtest_global_methods_can_be_mocked949,24714
929
- def test_kernel_methods_can_be_mockedtest_kernel_methods_can_be_mocked955,24898
930
- def test_undefing_kernel_methods_dont_effect_other_mockstest_undefing_kernel_methods_dont_effect_other_mocks961,25076
931
- def test_expectations_can_by_marked_as_defaulttest_expectations_can_by_marked_as_default969,25344
932
- def test_default_expectations_are_search_in_the_proper_ordertest_default_expectations_are_search_in_the_proper_order975,25506
933
- def test_expectations_with_count_constraints_can_by_marked_as_defaulttest_expectations_with_count_constraints_can_by_marked_as_default983,25809
934
- def test_default_expectations_are_overridden_by_later_expectationstest_default_expectations_are_overridden_by_later_expectations991,26045
935
- def test_default_expectations_can_be_changed_by_later_expectationstest_default_expectations_can_be_changed_by_later_expectations999,26273
936
- def test_ordered_default_expectations_can_be_specifiedtest_ordered_default_expectations_can_be_specified1010,26635
937
- def test_ordered_default_expectations_can_be_overriddentest_ordered_default_expectations_can_be_overridden1018,26876
938
- def test_by_default_works_at_mock_leveltest_by_default_works_at_mock_level1030,27147
939
- def test_by_default_at_mock_level_does_nothing_with_no_expectationstest_by_default_at_mock_level_does_nothing_with_no_expectations1041,27422
940
- def test_partial_mocks_can_have_default_expectationstest_partial_mocks_can_have_default_expectations1047,27567
941
- def test_partial_mocks_can_have_default_expectations_overriddentest_partial_mocks_can_have_default_expectations_overridden1053,27748
942
- def test_wicked_and_evil_tricks_with_by_default_are_thwartedtest_wicked_and_evil_tricks_with_by_default_are_thwarted1060,27996
943
- def test_mocks_can_handle_multi_parameter_respond_tostest_mocks_can_handle_multi_parameter_respond_tos1072,28401
944
- def test_backtraces_point_to_should_receive_linetest_backtraces_point_to_should_receive_line1083,28748
945
- def test_can_mock_operatorstest_can_mock_operators1097,29148
946
- def assert_operator(op, &block)assert_operator1127,30212
947
- class TestFlexMockShouldsWithInclude < Test::Unit::TestCaseTestFlexMockShouldsWithInclude1135,30366
948
- def test_include_enables_unqualified_arg_type_referencestest_include_enables_unqualified_arg_type_references1137,30460
949
- class TestFlexMockArgTypesDontLeak < Test::Unit::TestCaseTestFlexMockArgTypesDontLeak1145,30624
950
- def test_unqualified_arg_type_references_are_undefined_by_defaulttest_unqualified_arg_type_references_are_undefined_by_default1146,30682
951
-
952
- test/spys_test.rb,3062
953
- class TestSpys < Test::Unit::TestCaseTestSpys5,48
954
- class FooBarFooBar8,116
955
- def foofoo9,131
956
- def barbar12,165
957
- def setupsetup16,192
958
- def test_spy_detects_simple_calltest_spy_detects_simple_call21,254
959
- def test_spy_detects_simple_call_ignoring_argstest_spy_detects_simple_call_ignoring_args26,342
960
- def test_spy_rejects_a_never_made_calltest_spy_rejects_a_never_made_call31,451
961
- def test_spy_detects_call_with_literal_argtest_spy_detects_call_with_literal_arg36,549
962
- def test_spy_detects_call_with_class_argtest_spy_detects_call_with_class_arg41,653
963
- def test_spy_rejects_call_with_non_matching_literal_argtest_spy_rejects_call_with_non_matching_literal_arg46,761
964
- def test_spy_detects_call_with_multiple_argumentstest_spy_detects_call_with_multiple_arguments51,882
965
- def test_spy_detects_multiple_calls_with_different_argumentstest_spy_detects_multiple_calls_with_different_arguments56,1021
966
- def test_spy_rejects_if_times_options_not_matchingtest_spy_rejects_if_times_options_not_matching62,1174
967
- def test_spy_detects_a_blocktest_spy_detects_a_block68,1321
968
- def test_spy_rejects_a_blocktest_spy_rejects_a_block73,1415
969
- def test_spy_detects_a_missing_blocktest_spy_detects_a_missing_block78,1531
970
- def test_spy_rejects_a_missing_blocktest_spy_rejects_a_missing_block83,1647
971
- def test_spy_ignores_blocktest_spy_ignores_block88,1749
972
- def test_spy_accepts_correct_additional_validationstest_spy_accepts_correct_additional_validations93,1841
973
- def test_spy_accepts_multiple_additional_validations_first_failingtest_spy_accepts_multiple_additional_validations_first_failing99,2028
974
- def test_spy_accepts_multiple_additional_validations_second_failingtest_spy_accepts_multiple_additional_validations_second_failing108,2344
975
- def test_spy_rejects_incorrect_additional_validationstest_spy_rejects_incorrect_additional_validations117,2661
976
- def test_spy_selectively_applies_additional_validationstest_spy_selectively_applies_additional_validations125,2909
977
- def assert_failed(message_pattern)assert_failed135,3201
978
- def test_spy_methods_can_be_stubbedtest_spy_methods_can_be_stubbed146,3444
979
- def test_spy_cannot_see_normal_methodstest_spy_cannot_see_normal_methods153,3619
980
- def test_spy_cannot_see_normal_methods2test_spy_cannot_see_normal_methods2160,3776
981
- def test_calling_non_spy_base_methods_is_an_errortest_calling_non_spy_base_methods_is_an_error167,3961
982
- def test_cant_put_expectations_on_non_base_class_methodsxtest_cant_put_expectations_on_non_base_class_methodsx173,4078
983
- def test_cant_put_expectations_on_non_base_class_methods_unless_explicittest_cant_put_expectations_on_non_base_class_methods_unless_explicit182,4418
984
- def test_ok_to_use_explicit_even_when_its_not_neededtest_ok_to_use_explicit_even_when_its_not_needed188,4604
985
- def test_can_spy_on_partial_mockstest_can_spy_on_partial_mocks194,4770
986
- def test_can_spy_on_class_defined_methodstest_can_spy_on_class_defined_methods203,4984
987
- def test_can_spy_on_regular_mockstest_can_spy_on_regular_mocks209,5146
988
-
989
- test/symbol_extensions_test.rb,161
990
- class SymbolEtentensionsTest < Test::Unit::TestCaseSymbolEtentensionsTest3,27
991
- def test_as_name_converts_appropriatlytest_as_name_converts_appropriatly4,79
992
-
993
- test/test_class_extensions.rb,477
994
- class ClassExtensionsTest < Test::Unit::TestCaseClassExtensionsTest3,27
995
- class DogDog5,77
996
- def wagwag6,89
997
- def method_missing(sym, *args, &block)method_missing9,110
998
- def responds_to?(sym)responds_to?17,233
999
- def test_class_directly_defines_methodtest_class_directly_defines_method22,302
1000
- def test_class_indirectly_defines_methodtest_class_indirectly_defines_method26,389
1001
- def test_class_does_not_define_methodtest_class_does_not_define_method30,481
1002
-
1003
- test/test_setup.rb,339
1004
- class FlexMockFlexMock7,91
1005
- module TestCaseTestCase8,106
1006
- def assertion_failed_errorassertion_failed_error9,124
1007
- def assert_failure(options={}, &block)assert_failure16,378
1008
- def assert_mock_failure(options={}, &block)assert_mock_failure33,930
1009
- def assert_matching_line(ex, file, options)assert_matching_line47,1403
1010
-
1011
- В�:�,263
1012
- class TestFlexmockTestUnit < Test::Unit::TestCaseTestFlexmockTestUnit17,375
1013
- def teardownteardown18,425
1014
- def test_can_create_mockstest_can_create_mocks23,484
1015
- def test_should_fail__mocks_are_auto_verifiedtest_should_fail__mocks_are_auto_verified30,627
1016
-
1017
- /var/folders/b9/zwv8g_296jq17rcjpjw_94jc0000gn/T//tags.wSbSTw,1606
1018
- class TestTuIntegrationFlexMockMethod < Test::Unit::TestCaseTestTuIntegrationFlexMockMethod19,548
1019
- def test_can_construct_flexmocktest_can_construct_flexmock22,643
1020
- def test_can_construct_flexmock_with_blocktest_can_construct_flexmock_with_block28,800
1021
- class TestTuIntegrationMockVerificationInTeardown < Test::Unit::TestCaseTestTuIntegrationMockVerificationInTeardown36,990
1022
- def teardownteardown39,1097
1023
- def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown45,1193
1024
- class TestTuIntegrationMockVerificationWithoutSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationWithoutSetup50,1319
1025
- def teardownteardown53,1428
1026
- def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown59,1524
1027
- class TestTuIntegrationMockVerificationForgetfulSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationForgetfulSetup64,1650
1028
- def teardownteardown67,1761
1029
- def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown73,1857
1030
- class TestTuIntegrationSetupOverridenAndNoMocksOk < Test::Unit::TestCaseTestTuIntegrationSetupOverridenAndNoMocksOk78,1983
1031
- def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown81,2090
1032
- class TestTuIntegrationFailurePreventsVerification < Test::Unit::TestCaseTestTuIntegrationFailurePreventsVerification85,2159
1033
- def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown88,2267
1034
- def simulate_failuresimulate_failure95,2411
1035
-
1036
- test/undefined_test.rb,873
1037
- class UndefinedTest < Test::Unit::TestCaseUndefinedTest14,321
1038
- def test_undefined_method_calls_return_undefinedtest_undefined_method_calls_return_undefined15,364
1039
- def test_equalstest_equals19,482
1040
- def test_math_operatorstest_math_operators24,580
1041
- def test_math_operators_reversedtest_math_operators_reversed32,789
1042
- def test_comparisonstest_comparisons40,1007
1043
- def test_comparisons_reversedtest_comparisons_reversed48,1216
1044
- def test_base_level_methodstest_base_level_methods56,1434
1045
- def test_cant_create_a_new_undefinedtest_cant_create_a_new_undefined60,1521
1046
- def test_cant_clone_undefinedtest_cant_clone_undefined64,1631
1047
- def test_string_representationstest_string_representations69,1765
1048
- def test_undefined_is_not_niltest_undefined_is_not_nil74,1903
1049
- def assert_undefined(obj)assert_undefined80,1981
1050
- def undefinedundefined84,2044
1051
-
1052
- ,40
1053
- class DogDog3,36
1054
- def barkbark4,46
1055
-
1056
- ,0