(null),255 def known_good_way_to_build_xml(builder)known_good_way_to_build_xml160,4493 def new_way_to_build_xml(builder)new_way_to_build_xml164,4562 class QuoteServiceQuoteService235,6473 class PortfolioPortfolio238,6501 def valuevalue239,6519 doc/examples/test_unit_examples_test.rb,1490 class TestSimple < Test::Unit::TestCaseTestSimple3,30 def test_simple_mocktest_simple_mock7,108 class TestUndefined < Test::Unit::TestCaseTestUndefined15,244 def test_undefined_valuestest_undefined_values19,364 class TestDb < Test::Unit::TestCaseTestDb27,549 def test_dbtest_db36,862 class TestOrdered < Test::Unit::TestCaseTestOrdered48,1069 def test_query_and_updatetest_query_and_update55,1231 class MoreOrdered < Test::Unit::TestCaseMoreOrdered67,1457 def test_ordered_queriestest_ordered_queries81,2092 class EvenMoreOrderedTest < Test::Unit::TestCaseEvenMoreOrderedTest102,2633 def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode112,2998 class RecordedTest < Test::Unit::TestCaseRecordedTest132,3462 def test_build_xmltest_build_xml148,4182 def known_good_way_to_build_xml(builder)known_good_way_to_build_xml157,4437 def new_way_to_build_xml(builder)new_way_to_build_xml161,4506 class MultipleReturnValueTest < Test::Unit::TestCaseMultipleReturnValueTest167,4573 def test_multiple_getstest_multiple_gets175,4844 class IgnoreUnimportantMessages < Test::Unit::TestCaseIgnoreUnimportantMessages187,5119 def test_an_important_messagetest_an_important_message196,5444 class PartialMockTest < Test::Unit::TestCasePartialMockTest213,5869 def test_portfolio_valuetest_portfolio_value222,6185 class QuoteServiceQuoteService231,6439 class PortfolioPortfolio234,6467 def valuevalue235,6485 ,43 module RDocRDoc1,0 module PagePage2,12 dual_spec.rb,0 install.rb,29 def indir(newdir)indir7,68 ,880 class FlexMockFlexMock14,320 class AnyMatcherAnyMatcher17,427 def ===(target)===18,446 def inspectinspect21,485 class EqualMatcherEqualMatcher28,637 def initialize(obj)initialize29,658 def ===(target)===32,707 def inspectinspect35,756 class ProcMatcherProcMatcher44,967 def initialize(&block)initialize45,987 def ===(target)===48,1043 def inspectinspect51,1097 class HashMatcherHashMatcher58,1269 def initialize(hash)initialize59,1289 def ===(target)===62,1341 def inspectinspect65,1412 class DuckMatcherDuckMatcher72,1607 def initialize(methods)initialize73,1627 def ===(target)===76,1688 def inspectinspect79,1766 class OptionalProcMatcherOptionalProcMatcher86,1990 def initializeinitialize87,2018 def ===(target)===89,2045 def inspectinspect92,2132 lib/flexmock/argument_matching.rb,224 class FlexMockFlexMock1,0 module ArgumentMatchingArgumentMatching2,15 def all_match?(expected_args, actual_args)all_match?7,92 def match?(expected, actual)match?23,595 def missing?(arg)missing?29,752 ,272 class FlexMockFlexMock14,332 module ArgumentTypesArgumentTypes21,625 def anyany23,708 def eq(obj)eq29,835 def on(&block)on36,1035 def hsh(hash)hsh42,1176 def ducktype(*methods)ducktype48,1353 def optional_procoptional_proc52,1420 lib/flexmock/base.rb,0 ,87 class ClassClass10,415 def flexmock_defined?(method_name)flexmock_defined?13,491 ,30 class FlexMockFlexMock8,133 lib/flexmock/core.rb,1372 class FlexMockFlexMock49,1379 def initialize(name="unknown", container=nil)initialize58,1649 def inspectinspect70,1981 def flexmock_verifyflexmock_verify76,2141 def flexmock_teardownflexmock_teardown87,2382 def should_ignore_missingshould_ignore_missing91,2462 def by_defaultby_default97,2583 def matches?(sym, actual_args, options)matches?103,2727 def matches_block?(block_option)matches_block?111,2924 def method_missing(sym, *args, &block)method_missing119,3147 def respond_to?(sym, *args)respond_to?140,3840 def flexmock_find_expectation(method_name, *args) # :nodoc:flexmock_find_expectation145,3996 def flexmock_expectations_for(method_name) # :nodoc:flexmock_expectations_for151,4201 def flexmock_based_on(base_class)flexmock_based_on155,4294 def flexmock_received?(sym, args, options={})flexmock_received?161,4469 def flexmock_callsflexmock_calls183,5096 def flexmock_invoke_original(sym, args)flexmock_invoke_original189,5211 def method(sym)method194,5356 def should_receive(*args)should_receive223,6395 def flexmock_define_expectation(location, *args)flexmock_define_expectation228,6507 def should_expectshould_expect252,7384 def flexmock_wrap(&block)flexmock_wrap260,7574 def override_existing_method(sym)override_existing_method274,8129 def sclasssclass283,8349 ,335 class FlexMockFlexMock15,353 def use(*names)use39,1294 def format_call(sym, args) # :nodoc:format_call53,1691 def format_args(args)format_args59,1865 def check(msg, &block) # :nodoc:check69,2129 class UseContainerUseContainer76,2302 def initializeinitialize81,2384 def passed?passed?85,2441 lib/flexmock/default_framework_adapter.rb,345 class FlexMockFlexMock14,319 class DefaultFrameworkAdapterDefaultFrameworkAdapter15,334 def assert_block(msg, &block)assert_block16,366 def assert_equal(a, b, msg=nil)assert_equal23,521 class AssertionFailedError < StandardError; endAssertionFailedError27,621 def assertion_failed_errorassertion_failed_error28,673 lib/flexmock/deprecated_methods.rb,340 class ModuleModule13,296 def flexmock_deprecate(*method_names)flexmock_deprecate14,309 class FlexMockFlexMock33,809 def mock_handle(sym, expected_count=nil, &block) # :nodoc:mock_handle40,1107 class PartialMockProxyPartialMockProxy47,1397 def any_instance(&block)any_instance53,1554 module OrderingOrdering59,1702 ,137 class FlexMockFlexMock14,320 class UsageError < ::RuntimeErrorUsageError17,388 class MockError < ::RuntimeErrorMockError20,431 lib/flexmock/expectation.rb,2211 class FlexMockFlexMock15,356 class ExpectationExpectation29,889 def initialize(mock, sym, location)initialize35,1035 def to_sto_s51,1434 def descriptiondescription62,1705 def verify_call(*args)verify_call73,2081 def _return_value(args) # :nodoc:_return_value82,2301 def return_value(args)return_value87,2441 def perform_yielding(args)perform_yielding101,2769 def eligible?eligible?117,3354 def call_count_constrained?call_count_constrained?122,3503 def validate_ordervalidate_order127,3607 def flexmock_verifyflexmock_verify139,3982 def match_args(args)match_args147,4179 def with(*args)with152,4338 def with_no_argswith_no_args158,4472 def with_any_argswith_any_args164,4605 def and_return(*args, &block)and_return195,5614 def and_return_undefinedand_return_undefined219,6331 def and_yield(*yield_values)and_yield235,6900 def and_raise(exception, *args)and_raise259,7653 def and_throw(sym, value=nil)and_throw273,8018 def pass_thru(&block)pass_thru278,8128 def zero_or_more_timeszero_or_more_times286,8367 def times(limit)times293,8590 def nevernever302,8937 def onceonce309,9152 def twicetwice316,9367 def at_leastat_least328,9693 def at_mostat_most341,10072 def ordered(group_name=nil)ordered370,11341 def globallyglobally382,11721 def define_ordered(group_name, ordering)define_ordered388,11836 def explicitlyexplicitly404,12417 def by_defaultby_default408,12456 def flexmock_location_filterflexmock_location_filter413,12606 class CompositeExpectationCompositeExpectation426,12999 def initializeinitialize429,13073 def add(expectation)add434,13169 def method_missing(sym, *args, &block)method_missing439,13310 def order_numberorder_number450,13685 def mockmock455,13795 def should_receive(*args, &block)should_receive461,13959 def to_sto_s466,14132 class ExpectationRecorderExpectationRecorder480,14590 def initializeinitialize483,14650 def method_missing(sym, *args, &block)method_missing488,14761 def apply(mock)apply496,15033 ,499 class FlexMockFlexMock15,345 class ExpectationDirectorExpectationDirector20,556 def initialize(sym)initialize23,640 def call(args, call_record=nil)call38,1188 def <<(expectation)<<47,1509 def find_expectation(*args) # :nodoc:find_expectation52,1633 def flexmock_verify # :nodoc:flexmock_verify63,2007 def defaultify_expectation(exp) # :nodoc:defaultify_expectation70,2218 def find_expectation_in(expectations, *args)find_expectation_in82,2499 ,285 class FlexMockFlexMock2,1 class ExplicitNeededExplicitNeeded11,389 def initialize(expectation, method_name, base_class)initialize12,412 def explicitlyexplicitly19,599 def explicit?explicit?24,661 def method_missing(sym, *args, &block)method_missing28,704 lib/flexmock/mock_container.rb,1023 class FlexMockFlexMock16,381 module MockContainerMockContainer26,782 def flexmock_teardownflexmock_teardown31,966 def flexmock_verifyflexmock_verify38,1146 def flexmock_created_mocksflexmock_created_mocks45,1302 def flexmock_closeflexmock_close51,1522 def flexmock(*args)flexmock119,4730 def flexmock_remember(mocking_object)flexmock_remember173,6352 def flexmock_test_has_failed?flexmock_test_has_failed?186,6823 class MockContainerHelperMockContainerHelper199,7335 def next_idnext_id203,7444 def parse_should_args(mock, args, &block) # :nodoc:parse_should_args216,7917 def add_model_methods(mock, model_class, id, location)add_model_methods234,8430 def make_partial_proxy(container, obj, name, safe_mode)make_partial_proxy263,9888 def build_demeter_chain(mock, arg, &block)build_demeter_chain309,11874 def check_proper_mock(mock, method_name)check_proper_mock334,12721 def check_method_names(names)check_method_names344,13130 lib/flexmock/noop.rb,0 ,104 class ObjectObject1,0 def flexmock_singleton_defined?(method_name)flexmock_singleton_defined?2,13 ,399 class FlexMockFlexMock12,294 module OrderingOrdering20,666 def flexmock_allocate_orderflexmock_allocate_order23,733 def flexmock_groupsflexmock_groups29,896 def flexmock_current_orderflexmock_current_order34,1004 def flexmock_current_order=(value)flexmock_current_order=39,1127 def flexmock_validate_order(method_name, order_number)flexmock_validate_order43,1213 lib/flexmock/partial_mock.rb,1813 class FlexMockFlexMock14,319 class PartialMockProxyPartialMockProxy26,949 def initialize(obj, mock, safe_mode)initialize42,1368 def flexmock_getflexmock_get58,1768 def should_receive(*args)should_receive82,2708 def flexmock_define_expectation(location, *args)flexmock_define_expectation87,2828 def add_mock_method(method_name)add_mock_method98,3152 def new_instances(*allocators, &block)new_instances130,4368 def invoke_original(method, args)invoke_original155,5376 def flexmock_invoke_original(method, args)flexmock_invoke_original161,5530 def flexmock_verifyflexmock_verify167,5762 def flexmock_teardownflexmock_teardown172,5898 def flexmock_containerflexmock_container184,6236 def flexmock_received?(*args)flexmock_received?189,6329 def flexmock_callsflexmock_calls194,6436 def flexmock_container=(container)flexmock_container=200,6623 def flexmock_expectations_for(method_name)flexmock_expectations_for204,6739 def check_allocate_method(allocate_method)check_allocate_method210,6859 def sclasssclass217,7122 def singleton?(method_name)singleton?221,7177 def hide_existing_method(method_name)hide_existing_method231,7638 def stow_existing_definition(method_name)stow_existing_definition238,7855 def create_alias_for_existing_method(method_name)create_alias_for_existing_method258,8572 def safe_alias_method(new_alias, method_name)safe_alias_method270,9014 def define_proxy_method(method_name)define_proxy_method283,9375 def restore_original_definition(method_name)restore_original_definition304,10133 def remove_current_method(method_name)remove_current_method321,10604 def detached?detached?326,10765 def new_name(old_name)new_name331,10873 ,665 class FlexMockFlexMock3,20 module MockContainerMockContainer4,35 def rails_versionrails_version6,59 def should_render_view(template_name=nil)should_render_view25,684 def should_render_view_prior_version_124(template_name) # :nodoc:should_render_view_prior_version_12443,1310 def should_render_view_after_version_124(template_name)should_render_view_after_version_12464,2093 def should_render_view_after_version_202(template_name)should_render_view_after_version_20288,3015 def should_render_view_22x(template_name)should_render_view_22x109,3813 def should_render_view_23x(template_name)should_render_view_23x129,4575 ,0 lib/flexmock/recorder.rb,271 class FlexMockFlexMock14,329 class RecorderRecorder20,505 def initialize(mock)initialize24,611 def should_be_strict(is_strict=true)should_be_strict48,1543 def strict?strict?53,1657 def method_missing(sym, *args, &block)method_missing59,1787 lib/flexmock/rspec/configure.rb,0 lib/flexmock/rspec.rb,341 class FlexMockFlexMock16,321 class RSpecFrameworkAdapterRSpecFrameworkAdapter23,418 def assert_block(msg, &block)assert_block24,448 def assert_equal(a, b, msg=nil)assert_equal29,590 class AssertionFailedError < StandardError; endAssertionFailedError34,753 def assertion_failed_errorassertion_failed_error35,805 ¬3ø,778 class FlexMockFlexMock3,35 module RSpecMatchersRSpecMatchers4,50 class HaveReceivedHaveReceived6,74 def initialize(method_name)initialize9,126 def matches?(spy)matches?18,332 def failure_message_for_shouldfailure_message_for_should24,486 def failure_message_for_should_notfailure_message_for_should_not28,604 def with(*args)with32,735 def with_a_blockwith_a_block37,802 def without_a_blockwithout_a_block42,877 def times(n)times47,956 def nevernever52,1018 def onceonce56,1062 def twicetwice60,1105 def on(on_count)on64,1149 def and(&block)and69,1225 def construct_optionsconstruct_options74,1312 def have_received(method_name)have_received84,1537 ,603 class FlexMockFlexMock1,0 module SpyDescribersSpyDescribers3,16 def describe_spy_expectation(spy, sym, args, options={})describe_spy_expectation4,41 def describe_spy_negative_expectation(spy, sym, args, options={})describe_spy_negative_expectation8,161 def describe_spy(spy, sym, args, options, not_clause="")describe_spy14,313 def describe_calls(spy)describe_calls26,733 def times_description(times)times_description41,1280 def block_description(needs_block)block_description56,1529 def call_description(sym, args)call_description67,1736 ,120 class SymbolSymbol1,0 def flexmock_as_nameflexmock_as_name5,58 def flexmock_as_nameflexmock_as_name10,117 ,120 module TestTest14,336 module UnitUnit15,348 class TestCaseTestCase16,362 def teardownteardown25,677 ,328 class FlexMockFlexMock3,35 module TestUnitAssertionsTestUnitAssertions4,50 def assert_spy_called(spy, method_name, *args)assert_spy_called7,115 def assert_spy_not_called(spy, method_name, *args)assert_spy_not_called11,232 def _assert_spy_called(negative, spy, method_name, *args)_assert_spy_called17,365 lib/flexmock/test_unit_integration.rb,282 class FlexMockFlexMock16,397 module TestCaseTestCase30,954 def teardownteardown37,1160 class TestUnitFrameworkAdapterTestUnitFrameworkAdapter47,1367 def assert_block(msg, &block)assert_block50,1436 def assertion_failed_errorassertion_failed_error60,1697 ,318 class FlexMockFlexMock12,294 class UndefinedUndefined17,465 def method_missing(sym, *args, &block)method_missing18,483 def to_sto_s22,546 def inspectinspect26,588 def cloneclone30,624 def <=>(other)<=>34,658 def coerce(other)coerce38,697 def self.undefinedundefined47,902 lib/flexmock/validators.rb,878 class FlexMockFlexMock15,353 class CountValidatorCountValidator20,489 def initialize(expectation, limit)initialize23,549 def eligible?(n)eligible?31,805 def calls(n)calls36,875 def describedescribe41,983 def describe_limitdescribe_limit54,1165 def validate_count(n, &block)validate_count58,1215 class ExactCountValidator < CountValidatorExactCountValidator74,1741 def validate(n)validate77,1865 class AtLeastCountValidator < CountValidatorAtLeastCountValidator85,2079 def validate(n)validate88,2205 def describedescribe93,2325 def eligible?(n)eligible?105,2668 def describe_limitdescribe_limit109,2709 class AtMostCountValidator < CountValidatorAtMostCountValidator117,2910 def validate(n)validate119,3025 def describedescribe124,3144 def describe_limitdescribe_limit128,3195 lib/flexmock/version.rb,58 class FlexMockFlexMock1,0 module VersionVersion2,15 pjw_94jc0000gn/T//tags.zA7zNy,0 ,0 test/assert_spy_called_test.rb,1272 class AssertSpyCalledTest < Test::Unit::TestCaseAssertSpyCalledTest6,95 class FooBarFooBar9,174 def foofoo10,189 def barbar12,209 def setupsetup16,236 def spyspy21,298 def test_assert_detects_basic_calltest_assert_detects_basic_call25,324 def test_assert_detects_basic_call_with_argstest_assert_detects_basic_call_with_args30,412 def test_assert_rejects_incorrect_argstest_assert_rejects_incorrect_args35,521 def test_assert_detects_multiple_callstest_assert_detects_multiple_calls42,742 def test_assert_rejects_incorrect_typetest_assert_rejects_incorrect_type49,873 def test_assert_detects_blockstest_assert_detects_blocks57,1114 def test_assert_detects_any_argstest_assert_detects_any_args64,1252 def test_assert_rejects_bad_count_on_any_argstest_assert_rejects_bad_count_on_any_args72,1442 def test_assert_error_lists_calls_actually_made_without_handled_bytest_assert_error_lists_calls_actually_made_without_handled_by79,1686 def test_assert_error_lists_calls_actually_made_with_handled_bytest_assert_error_lists_calls_actually_made_with_handled_by91,2077 def test_assert_errors_say_no_calls_madetest_assert_errors_say_no_calls_made103,2487 def assert_fails(message_pattern)assert_fails111,2644 test/base_class_test.rb,1070 class BaseClassTest < Test::Unit::TestCaseBaseClassTest3,27 class FooBarFooBar6,100 def foofoo7,115 def method_missing(sym, *args, &block)method_missing10,136 def respond_to?(method)respond_to?15,235 def mockmock20,309 def test_base_class_auto_mocks_classtest_base_class_auto_mocks_class24,363 def test_base_class_auto_mocks_base_class_methodstest_base_class_auto_mocks_base_class_methods28,445 def test_base_class_does_not_mock_non_base_class_methodstest_base_class_does_not_mock_non_base_class_methods32,550 def test_can_stub_existing_methodstest_can_stub_existing_methods38,675 def test_can_not_stub_non_class_defined_methodstest_can_not_stub_non_class_defined_methods43,789 def test_can_not_stub_non_class_methods_in_single_linetest_can_not_stub_non_class_methods_in_single_line52,1097 def test_can_explicitly_stub_non_class_defined_methodstest_can_explicitly_stub_non_class_defined_methods61,1418 def test_can_explicitly_stub_meta_programmed_methodstest_can_explicitly_stub_meta_programmed_methods66,1572 test/container_methods_test.rb,1111 class TestFlexmockContainerMethods < Test::Unit::TestCaseTestFlexmockContainerMethods15,379 def test_simple_mock_creationtest_simple_mock_creation18,467 def test_mock_with_nametest_mock_with_name24,606 def test_mock_with_symbol_nametest_mock_with_symbol_name31,803 def test_mock_with_hashtest_mock_with_hash38,1006 def test_mock_with_name_and_hashtest_mock_with_name_and_hash44,1149 def test_mock_with_name_hash_and_blocktest_mock_with_name_hash_and_block53,1445 def test_basic_stubtest_basic_stub61,1666 def test_basic_stub_with_nametest_basic_stub_with_name68,1826 def test_stub_with_quick_definitionstest_stub_with_quick_definitions76,2076 def test_stub_with_name_quick_definitionstest_stub_with_name_quick_definitions82,2213 def test_stubs_are_auto_verifiedtest_stubs_are_auto_verified91,2525 def test_stubbing_a_stringtest_stubbing_a_string98,2710 def test_multiple_stubs_work_with_same_partial_mock_proxytest_multiple_stubs_work_with_same_partial_mock_proxy104,2828 def test_multiple_stubs_layer_behaviortest_multiple_stubs_layer_behavior111,2998 ,473 class TestFlexmockDefaultFrameworkAdapter < Test::Unit::TestCaseTestFlexmockDefaultFrameworkAdapter14,321 def setupsetup15,386 def test_assert_block_raises_exceptiontest_assert_block_raises_exception19,458 def test_assert_block_doesnt_raise_exceptiontest_assert_block_doesnt_raise_exception25,645 def test_assert_equal_doesnt_raise_exceptiontest_assert_equal_doesnt_raise_exception29,753 def test_assert_equal_can_failtest_assert_equal_can_fail33,857 ,1568 class TestDemeterMocking < Test::Unit::TestCaseTestDemeterMocking5,48 def test_demeter_mockingtest_demeter_mocking8,126 def test_demeter_mocking_with_operatorstest_demeter_mocking_with_operators16,353 def test_demeter_mocking_with_multiple_operatorstest_demeter_mocking_with_multiple_operators25,642 def test_multiple_demeter_mocks_on_same_branch_is_oktest_multiple_demeter_mocks_on_same_branch_is_ok31,803 def test_multi_level_deep_demeter_violationtest_multi_level_deep_demeter_violation39,1095 def test_final_method_can_have_multiple_expecationstest_final_method_can_have_multiple_expecations45,1280 def test_conflicting_mock_declarations_raises_an_errortest_conflicting_mock_declarations_raises_an_error53,1571 def test_conflicting_mock_declarations_in_reverse_order_does_not_raise_errortest_conflicting_mock_declarations_in_reverse_order_does_not_raise_error65,1976 def test_preestablishing_existing_mock_is_oktest_preestablishing_existing_mock_is_ok75,2318 def test_quick_defs_can_use_demeter_mockingtest_quick_defs_can_use_demeter_mocking83,2581 def test_quick_defs_can_use_demeter_mocking_twotest_quick_defs_can_use_demeter_mocking_two93,2890 def test_errors_on_ill_formed_method_namestest_errors_on_ill_formed_method_names100,3119 def test_no_errors_on_well_formed_method_namestest_no_errors_on_well_formed_method_names109,3373 def test_readme_example_1test_readme_example_1118,3591 def test_readme_example_2test_readme_example_2128,3965 def test_readme_example_3test_readme_example_3134,4166 test/deprecated_methods_test.rb,2237 class TestFlexMock < Test::Unit::TestCaseTestFlexMock15,359 def s(&block)s19,465 def setupsetup23,515 def test_handletest_handle27,563 def test_handle_no_blocktest_handle_no_block34,707 def test_called_with_blocktest_called_with_block40,837 def test_return_valuetest_return_value47,1035 def test_handle_missing_methodtest_handle_missing_method52,1140 def test_ignore_missing_methodtest_ignore_missing_method60,1370 def test_good_countstest_good_counts66,1501 def test_bad_countstest_bad_counts74,1640 def test_undetermined_countstest_undetermined_counts85,1847 def test_zero_countstest_zero_counts94,1992 def test_file_io_with_usetest_file_io_with_use103,2161 def count_lines(stream)count_lines111,2358 def test_usetest_use119,2465 def test_failures_during_usetest_failures_during_use128,2612 def test_sequential_valuestest_sequential_values138,2831 def test_respond_to_returns_false_for_non_handled_methodstest_respond_to_returns_false_for_non_handled_methods147,3063 def test_respond_to_returns_true_for_explicit_methodstest_respond_to_returns_true_for_explicit_methods151,3198 def test_respond_to_returns_true_for_missing_methods_when_ignoring_missingtest_respond_to_returns_true_for_missing_methods_when_ignoring_missing156,3357 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 def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown166,3734 def test_method_returns_callable_proctest_method_returns_callable_proc172,3852 def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods181,4112 class TestDeprecatedOrderingMethods < Test::Unit::TestCaseTestDeprecatedOrderingMethods189,4339 def test_deprecated_ordering_methodstest_deprecated_ordering_methods193,4462 class TestAnyInstance < Test::Unit::TestCaseTestAnyInstance205,4858 class DogDog209,4967 def barkbark210,4979 def test_any_instance_still_works_for_backwards_compatibilitytest_any_instance_still_works_for_backwards_compatibility215,5019 ,1206 class TemperatureSamplerTemperatureSampler14,321 def initialize(sensor)initialize15,346 def average_tempaverage_temp19,399 class TestTemperatureSampler < Test::Unit::TestCaseTestTemperatureSampler25,526 def test_tempurature_samplertest_tempurature_sampler28,608 class TestExamplesFromReadme < Test::Unit::TestCaseTestExamplesFromReadme37,887 def test_simple_return_valuestest_simple_return_values40,969 def test_returning_an_undefined_valuetest_returning_an_undefined_value46,1109 def test_dbtest_db52,1247 def test_query_and_updatetest_query_and_update61,1477 def test_ordered_queriestest_ordered_queries70,1730 def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode88,2327 def test_build_xmltest_build_xml105,2859 def known_good_way_to_build_xml(rec)known_good_way_to_build_xml114,3114 def new_way_to_build_xml(rec)new_way_to_build_xml119,3184 def test_multiple_getstest_multiple_gets123,3272 def test_an_important_messagetest_an_important_message132,3517 class QuoteServiceQuoteService141,3747 class PortfolioPortfolio143,3774 def valuevalue144,3792 def test_portfolio_valuetest_portfolio_value149,3850 test/expectation_description_test.rb,782 class ExpectationDescriptionTest < Test::Unit::TestCaseExpectationDescriptionTest14,321 def setupsetup17,407 def test_basic_descriptiontest_basic_description22,518 def test_with_no_argstest_with_no_args26,612 def test_with_simple_argstest_with_simple_args31,724 def test_with_nevertest_with_never36,856 def test_with_oncetest_with_once41,964 def test_with_twicetest_with_twice46,1069 def test_with_3test_with_351,1177 def test_with_at_least_oncetest_with_at_least_once56,1287 def test_with_at_least_10test_with_at_least_1061,1419 def test_with_at_most_oncetest_with_at_most_once66,1559 def test_with_zero_or_more_timestest_with_zero_or_more_times71,1688 def test_with_at_least_1_at_most_10test_with_at_least_1_at_most_1076,1843 test/extended_should_receive_test.rb,808 module ExtendedShouldReceiveTestsExtendedShouldReceiveTests14,321 def test_accepts_expectation_hashtest_accepts_expectation_hash15,355 def test_accepts_list_of_methodstest_accepts_list_of_methods21,519 def test_contraints_apply_to_all_expectationstest_contraints_apply_to_all_expectations28,677 def test_count_contraints_apply_to_all_expectationstest_count_contraints_apply_to_all_expectations35,944 def test_multiple_should_receives_are_allowedtest_multiple_should_receives_are_allowed41,1135 class TestExtendedShouldReceiveOnFullMocks < Test::Unit::TestCaseTestExtendedShouldReceiveOnFullMocks49,1352 def setupsetup53,1485 class TestExtendedShouldReceiveOnPartialMockProxies < Test::Unit::TestCaseTestExtendedShouldReceiveOnPartialMockProxies60,1555 def setupsetup64,1697 `Á:ƒ,528 class DummyModelDummyModel5,48 class ChildModel < DummyModelChildModel8,70 class TestFlexModel < Test::Unit::TestCaseTestFlexModel12,176 def test_initial_conditionstest_initial_conditions15,249 def test_classifying_mock_modelstest_classifying_mock_models27,650 def test_mock_models_have_different_idstest_mock_models_have_different_ids37,897 def test_mock_models_can_have_quick_defstest_mock_models_can_have_quick_defs43,1048 def test_mock_models_can_have_blockstest_mock_models_can_have_blocks48,1188 test/naming_test.rb,816 class TestNaming < Test::Unit::TestCaseTestNaming14,321 def test_nametest_name17,391 def test_name_in_no_handler_found_errortest_name_in_no_handler_found_error22,474 def test_name_in_received_count_errortest_name_in_received_count_error31,690 def test_naming_with_usetest_naming_with_use40,910 def test_naming_with_multiple_mocks_in_usetest_naming_with_multiple_mocks_in_use46,1027 def test_inspect_returns_reasonable_nametest_inspect_returns_reasonable_name53,1215 def test_mock_can_override_inspecttest_mock_can_override_inspect60,1399 class DummyDummy67,1602 def inspectinspect68,1616 def test_partial_mocks_use_original_inspecttest_partial_mocks_use_original_inspect73,1669 def test_partial_mocks_can_override_inspecttest_partial_mocks_can_override_inspect79,1833 test/new_instances_test.rb,2428 class TestNewInstances < Test::Unit::TestCaseTestNewInstances14,321 class DogDog18,431 def barkbark19,443 def wagwag22,476 def self.makemake25,508 class CatCat30,551 def initialize(name, &block)initialize32,585 class ConnectionConnection38,691 def initialize(*args)initialize39,710 def send(args)send42,778 def post(args)post45,822 def test_new_instances_allows_stubbing_of_existing_methodstest_new_instances_allows_stubbing_of_existing_methods50,873 def test_new_instances_stubs_still_have_existing_methodstest_new_instances_stubs_still_have_existing_methods58,1094 def test_new_instances_will_pass_args_to_newtest_new_instances_will_pass_args_to_new66,1309 def test_new_gets_block_after_restubbingtest_new_gets_block_after_restubbing79,1715 def test_new_instances_stub_verification_happens_on_teardowntest_new_instances_stub_verification_happens_on_teardown92,2036 def test_new_instances_reports_error_on_non_classestest_new_instances_reports_error_on_non_classes102,2375 def test_does_not_by_default_stub_objects_created_with_allocatetest_does_not_by_default_stub_objects_created_with_allocate112,2654 def test_explicitly_mocking_allocation_in_new_instances_fails_in_ruby_19test_explicitly_mocking_allocation_in_new_instances_fails_in_ruby_19121,2909 def test_can_explicitly_stub_objects_created_with_allocatetest_can_explicitly_stub_objects_created_with_allocate129,3179 def test_can_stub_objects_created_with_arbitrary_class_methodstest_can_stub_objects_created_with_arbitrary_class_methods138,3436 def test_stubbing_arbitrary_class_methods_leaves_new_alonetest_stubbing_arbitrary_class_methods_leaves_new_alone145,3659 def test_stubbing_new_and_allocate_doesnt_double_stub_objects_on_newtest_stubbing_new_and_allocate_doesnt_double_stub_objects_on_new152,3874 def test_blocks_on_new_do_not_have_stubs_installedtest_blocks_on_new_do_not_have_stubs_installed165,4327 def test_new_instances_accept_chained_expectationstest_new_instances_accept_chained_expectations179,4665 def test_fancy_use_of_chained_should_receivedtest_fancy_use_of_chained_should_received187,4935 def test_writable_accessorstest_writable_accessors192,5090 def test_ordering_can_be_specifiedtest_ordering_can_be_specified198,5235 def test_ordering_can_be_specified_in_groupstest_ordering_can_be_specified_in_groups206,5429 test/object_extensions_test.rb,377 class ObjectExtensionsTest < Test::Unit::TestCaseObjectExtensionsTest6,85 def setupsetup7,135 def test_undefined_methods_are_not_singletonstest_undefined_methods_are_not_singletons14,215 def test_normal_methods_are_not_singletonstest_normal_methods_are_not_singletons18,324 def test_singleton_methods_are_singletonstest_singleton_methods_are_singletons22,429 test/partial_mock_test.rb,6105 class TestStubbing < Test::Unit::TestCaseTestStubbing14,321 class DogDog17,393 def barkbark18,405 def Dog.createcreate21,438 class DogPlus < DogDogPlus26,487 def should_receiveshould_receive27,509 def new_instancesnew_instances30,558 def by_defaultby_default33,603 def test_attempting_to_partially_mock_existing_mock_is_nooptest_attempting_to_partially_mock_existing_mock_is_noop38,659 def test_stub_command_add_behavior_to_arbitrary_objectstest_stub_command_add_behavior_to_arbitrary_objects44,844 def test_stub_command_can_configure_via_blocktest_stub_command_can_configure_via_block50,1028 def test_stubbed_methods_can_take_blockstest_stubbed_methods_can_take_blocks58,1225 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 def test_stubbed_methods_can_invoke_original_behavior_directlytest_stubbed_methods_can_invoke_original_behavior_directly70,1597 def test_stubbed_methods_can_invoke_original_behavior_with_modificationtest_stubbed_methods_can_invoke_original_behavior_with_modification76,1775 def test_stubbed_methods_returning_partial_mockstest_stubbed_methods_returning_partial_mocks82,1995 def test_multiple_methods_can_be_stubbedtest_multiple_methods_can_be_stubbed91,2245 def test_original_behavior_can_be_restoredtest_original_behavior_can_be_restored99,2497 def test_original_missing_behavior_can_be_restoredtest_original_missing_behavior_can_be_restored109,2832 def test_multiple_stubs_on_single_method_can_be_restored_missing_methodtest_multiple_stubs_on_single_method_can_be_restored_missing_method118,3111 def test_original_behavior_is_restored_when_multiple_methods_are_mockedtest_original_behavior_is_restored_when_multiple_methods_are_mocked129,3520 def test_original_behavior_is_restored_on_class_objectstest_original_behavior_is_restored_on_class_objects138,3849 def test_original_behavior_is_restored_on_singleton_methodstest_original_behavior_is_restored_on_singleton_methods145,4096 def obj.hi() :hello endhi147,4179 def test_original_behavior_is_restored_on_singleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_singleton_methods_with_multiple_stubs155,4375 def obj.hi(n) "hello#{n}" endhi157,4478 def test_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubstest_original_behavior_is_restored_on_nonsingleton_methods_with_multiple_stubs167,4799 def test_stubbing_file_shouldnt_break_writingtest_stubbing_file_shouldnt_break_writing183,5293 def test_original_behavior_is_restored_even_when_errorstest_original_behavior_is_restored_even_when_errors199,5732 def m.flexmock_verify() endflexmock_verify211,6109 def test_not_calling_stubbed_method_is_an_errortest_not_calling_stubbed_method_is_an_error214,6148 def test_mock_is_verified_when_the_stub_is_verifiedtest_mock_is_verified_when_the_stub_is_verified223,6366 def test_stub_can_have_explicit_nametest_stub_can_have_explicit_name232,6623 def test_unamed_stub_will_use_default_naming_conventiontest_unamed_stub_will_use_default_naming_convention238,6802 def test_partials_can_be_defined_in_a_blocktest_partials_can_be_defined_in_a_block244,6998 def test_partials_defining_block_return_real_obj_not_proxytest_partials_defining_block_return_real_obj_not_proxy252,7185 def test_partial_mocks_always_return_domain_objecttest_partial_mocks_always_return_domain_object259,7379 def test_domain_objects_do_not_have_mock_methodstest_domain_objects_do_not_have_mock_methods270,7659 def test_partial_mocks_have_mock_methodstest_partial_mocks_have_mock_methods277,7851 def test_partial_mocks_do_not_have_mock_methods_after_teardowntest_partial_mocks_do_not_have_mock_methods_after_teardown285,8047 class NoMethodsNoMethods299,8639 def methods(arg = true)methods300,8657 def xtest_object_methods_method_is_not_used_in_singleton_checksxtest_object_methods_method_is_not_used_in_singleton_checks305,8757 def obj.mock() :original endmock307,8847 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 def dog.mock() :original endmock313,9039 class MockColisionMockColision319,9160 def mockmock320,9181 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 def test_safe_partial_mocks_do_not_support_mock_methodstest_safe_partial_mocks_do_not_support_mock_methods332,9429 def test_safe_partial_mocks_require_blocktest_safe_partial_mocks_require_block340,9657 def test_safe_partial_mocks_are_actually_mockedtest_safe_partial_mocks_are_actually_mocked345,9790 def test_should_receive_does_not_override_preexisting_deftest_should_receive_does_not_override_preexisting_def350,9960 def test_should_receive_does_override_should_receive_preexisting_deftest_should_receive_does_override_should_receive_preexisting_def356,10160 class LiarLiar361,10344 def respond_to?(method_name)respond_to?362,10357 def test_liar_actually_liestest_liar_actually_lies372,10526 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 class MetaDog < DogMetaDog384,10863 def method_missing(method, *args, &block)method_missing385,10885 def respond_to_missing?(method, *)respond_to_missing?392,11019 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 class ValueObjectValueObject408,11531 def initialize(val)initialize411,11573 def ==(other)==415,11623 def test_partial_mocks_in_the_presense_of_equal_definitiontest_partial_mocks_in_the_presense_of_equal_definition420,11680 test/rails_view_stub_test.rb,1492 module ViewTestsViewTests6,86 def test_view_mocks_as_stubtest_view_mocks_as_stub7,103 def test_fails_if_no_rendertest_fails_if_no_render12,197 def test_view_mocks_with_expectationtest_view_mocks_with_expectation19,331 def test_view_mocks_with_expectation_fails_with_different_templatetest_view_mocks_with_expectation_fails_with_different_template24,435 def test_view_mocks_with_expectation_and_multiple_templatestest_view_mocks_with_expectation_and_multiple_templates32,644 def pretend_to_be_rails_version(version)pretend_to_be_rails_version39,820 class TestRailsViewStubForVersionsUpTo_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsUpTo_1_2_445,1015 def setupsetup49,1133 def render(*names)render56,1362 class TestRailsViewStubForVersionsAfter_1_2_4 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_1_2_470,1640 def setupsetup74,1759 def render(*names)render82,2032 class TestRailsViewStubForVersionsAfter_2_0_2 < Test::Unit::TestCaseTestRailsViewStubForVersionsAfter_2_0_297,2334 def setupsetup101,2453 def render(*names)render109,2728 class FlexMockFlexMock123,2983 module MockContainerMockContainer124,2998 module RailsRails125,3021 module VERSIONVERSION126,3038 class TestRailsVersion < Test::Unit::TestCaseTestRailsVersion133,3107 def test_rails_version_to_get_code_coveragetest_rails_version_to_get_code_coverage135,3182 module ActionViewActionView142,3280 class BaseBase143,3298 test/record_mode_test.rb,1339 class TestRecordMode < Test::Unit::TestCaseTestRecordMode14,321 def test_recording_mode_workstest_recording_mode_works17,395 def test_arguments_are_passed_to_recording_mode_blocktest_arguments_are_passed_to_recording_mode_block25,569 def test_recording_mode_handles_multiple_returnstest_recording_mode_handles_multiple_returns36,833 def test_recording_mode_does_not_specify_ordertest_recording_mode_does_not_specify_order50,1243 def test_recording_mode_gets_block_args_tootest_recording_mode_gets_block_args_too61,1478 def test_recording_mode_should_validate_args_with_equalstest_recording_mode_should_validate_args_with_equals73,1748 def test_recording_mode_should_allow_arg_contraint_validationtest_recording_mode_should_allow_arg_contraint_validation84,2013 def test_recording_mode_should_handle_multiplicity_contraintstest_recording_mode_should_handle_multiplicity_contraints95,2283 def test_strict_record_mode_requires_exact_argument_matchestest_strict_record_mode_requires_exact_argument_matches107,2564 def test_strict_record_mode_requires_exact_orderingtest_strict_record_mode_requires_exact_ordering119,2873 def test_strict_record_mode_requires_oncetest_strict_record_mode_requires_once133,3205 def test_strict_record_mode_can_not_failtest_strict_record_mode_can_not_fail146,3508 test/redirect_error.rb,114 class FlexMockFlexMock3,20 module RedirectErrorRedirectError4,35 def redirect_errorredirect_error5,58 ,0 test/rspec_integration/spy_example_spec.rb,134 class DogDog8,106 def wags(arg)wags9,118 def barksbarks13,179 def should_fail(message_pattern)should_fail197,4898 ,2164 class TestSamples < Test::Unit::TestCaseTestSamples16,347 def test_file_iotest_file_io24,717 def count_lines(file)count_lines32,968 class TestUndefined < Test::Unit::TestCaseTestUndefined42,1061 def test_undefined_valuestest_undefined_values45,1134 class TestSimple < Test::Unit::TestCaseTestSimple54,1320 def test_simple_mocktest_simple_mock57,1390 class TestDog < Test::Unit::TestCaseTestDog64,1525 def test_dog_wagstest_dog_wags67,1592 class WooferWoofer73,1703 class DogDog76,1721 def initializeinitialize77,1731 def barkbark80,1779 def wagwag83,1813 class TestDogBarking < Test::Unit::TestCaseTestDogBarking88,1845 def setupsetup93,2007 def test_dogtest_dog98,2080 class TestDogBarkingWithNewInstances < Test::Unit::TestCaseTestDogBarkingWithNewInstances104,2211 def setupsetup109,2375 def test_dogtest_dog113,2460 class TestDefaults < Test::Unit::TestCaseTestDefaults119,2594 def setupsetup122,2666 def test_something_where_bark_must_be_called_oncetest_something_where_bark_must_be_called_once127,2793 class TestDemeter < Test::Unit::TestCaseTestDemeter135,2995 def test_manual_mockingtest_manual_mocking137,3065 def test_demetertest_demeter150,3499 class TestDb < Test::Unit::TestCaseTestDb160,3714 def test_dbtest_db163,3780 class TestDb < Test::Unit::TestCaseTestDb174,3985 def test_query_and_updatetest_query_and_update177,4051 def test_ordered_queriestest_ordered_queries188,4328 def test_ordered_queries_in_record_modetest_ordered_queries_in_record_mode206,4868 def known_good_way_to_build_xml(builder)known_good_way_to_build_xml223,5343 def new_way_to_build_xml(builder)new_way_to_build_xml227,5410 def test_build_xmltest_build_xml231,5494 class TestMoreSamples < Test::Unit::TestCaseTestMoreSamples242,5754 def test_multiple_getstest_multiple_gets245,5829 def test_an_important_messagetest_an_important_message254,6074 class QuoteServiceQuoteService263,6335 class PortfolioPortfolio266,6363 def initializeinitialize267,6381 def valuevalue270,6448 def test_portfolio_valuetest_portfolio_value275,6504 ,1266 class TestShouldIgnoreMissing < Test::Unit::TestCaseTestShouldIgnoreMissing14,321 def setupsetup17,404 def test_mocks_do_not_respond_to_undefined_methodstest_mocks_do_not_respond_to_undefined_methods21,452 def test_mocks_do_respond_to_defined_methodstest_mocks_do_respond_to_defined_methods25,556 def test_mocks_do_respond_to_any_method_when_ignoring_missingtest_mocks_do_respond_to_any_method_when_ignoring_missing30,696 def test_should_ignore_missing_returns_mocktest_should_ignore_missing_returns_mock35,842 def test_ignored_methods_return_undefinedtest_ignored_methods_return_undefined40,967 def test_undefined_mocking_with_argumentstest_undefined_mocking_with_arguments46,1141 def test_method_chains_with_undefined_are_self_preservingtest_method_chains_with_undefined_are_self_preserving51,1289 def test_method_proc_raises_error_on_unknowntest_method_proc_raises_error_on_unknown56,1454 def test_method_returns_callable_proctest_method_returns_callable_proc62,1578 def test_not_calling_method_proc_will_fail_count_constraintstest_not_calling_method_proc_will_fail_count_constraints69,1766 def test_method_returns_do_nothing_proc_for_missing_methodstest_method_returns_do_nothing_proc_for_missing_methods78,2028 ,11666 def mock_top_level_functionmock_top_level_function14,321 module KernelKernel18,362 def mock_kernel_functionmock_kernel_function19,376 class CatCat25,442 def purrpurr26,452 def meowmeow28,469 class TestFlexMockShoulds < Test::Unit::TestCaseTestFlexMockShoulds32,491 def test_defaultstest_defaults43,957 def test_returns_with_valuetest_returns_with_value52,1125 def test_returns_with_multiple_valuestest_returns_with_multiple_values60,1292 def test_multiple_returnstest_multiple_returns71,1552 def test_returns_with_blocktest_returns_with_block82,1812 def test_block_example_from_readmetest_block_example_from_readme91,2015 def test_return_with_and_without_block_interleavedtest_return_with_and_without_block_interleaved101,2311 def test_and_returns_aliastest_and_returns_alias111,2591 def test_and_return_undefinedtest_and_return_undefined118,2728 def test_and_yield_will_continue_to_yield_the_same_valuetest_and_yield_will_continue_to_yield_the_same_value128,3077 def test_and_yield_with_multiple_values_yields_the_valuestest_and_yield_with_multiple_values_yields_the_values136,3323 def test_multiple_yields_are_done_sequentiallytest_multiple_yields_are_done_sequentially143,3533 def test_multiple_yields_and_multiple_returns_are_syncedtest_multiple_yields_and_multiple_returns_are_synced152,3805 def test_failure_if_no_block_giventest_failure_if_no_block_given165,4322 def test_failure_different_return_value_than_yield_returntest_failure_different_return_value_than_yield_return172,4505 def test_multiple_yieldstest_multiple_yields181,4791 def test_multiple_yields_will_yield_the_last_value_settest_multiple_yields_will_yield_the_last_value_set189,5029 def test_yielding_then_not_yielding_and_then_yielding_againtest_yielding_then_not_yielding_and_then_yielding_again200,5406 def test_yields_syntaxtest_yields_syntax211,5753 class MyError < RuntimeErrorMyError218,5898 def test_and_raises_with_exception_class_throws_exceptiontest_and_raises_with_exception_class_throws_exception221,5936 def test_and_raises_with_arguments_throws_exception_made_with_argstest_and_raises_with_arguments_throws_exception_made_with_args230,6145 def test_and_raises_with_a_specific_exception_throws_the_exceptiontest_and_raises_with_a_specific_exception_throws_the_exception240,6426 def test_raises_is_an_alias_for_and_raisetest_raises_is_an_alias_for_and_raise251,6696 def test_multiple_and_raise_clauses_will_be_done_sequentiallytest_multiple_and_raise_clauses_will_be_done_sequentially260,6896 def test_and_throw_will_throw_a_symboltest_and_throw_will_throw_a_symbol272,7294 def test_and_throw_with_expression_will_throwtest_and_throw_with_expression_will_throw283,7537 def test_throws_is_an_alias_for_and_throwtest_throws_is_an_alias_for_and_throw294,7819 def test_multiple_throws_will_be_done_sequentiallytest_multiple_throws_will_be_done_sequentially305,8094 def test_pass_thru_just_returns_undefined_on_mockstest_pass_thru_just_returns_undefined_on_mocks317,8424 def test_multiple_expectationstest_multiple_expectations324,8598 def test_with_no_args_with_no_argstest_with_no_args_with_no_args334,8829 def test_with_no_args_but_with_argstest_with_no_args_but_with_args341,8957 def test_with_any_argstest_with_any_args350,9182 def test_with_any_single_arg_matchingtest_with_any_single_arg_matching360,9360 def test_with_any_single_arg_nonmatchingtest_with_any_single_arg_nonmatching368,9553 def test_with_equal_arg_matchingtest_with_equal_arg_matching378,9788 def test_with_ducktype_arg_matchingtest_with_ducktype_arg_matching385,9951 def test_with_ducktype_arg_matching_no_matchtest_with_ducktype_arg_matching_no_match392,10130 def test_with_hash_matchingtest_with_hash_matching401,10395 def test_with_hash_non_matchingtest_with_hash_non_matching408,10583 def test_with_equal_arg_nonmatchingtest_with_equal_arg_nonmatching417,10844 def test_with_optional_proctest_with_optional_proc426,11081 def test_with_optional_proc_and_missing_proctest_with_optional_proc_and_missing_proc433,11229 def test_with_optional_proc_distinquishes_between_nil_and_missingtest_with_optional_proc_distinquishes_between_nil_and_missing440,11390 def test_with_arbitrary_arg_matchingtest_with_arbitrary_arg_matching448,11621 def test_args_matching_with_regextest_args_matching_with_regex463,12052 def test_arg_matching_with_regex_matching_non_stringtest_arg_matching_with_regex_matching_non_string475,12373 def test_arg_matching_with_classtest_arg_matching_with_class482,12550 def test_arg_matching_with_no_matchtest_arg_matching_with_no_match493,12834 def test_arg_matching_with_string_doesnt_over_matchtest_arg_matching_with_string_doesnt_over_match502,13082 def test_block_arg_given_to_no_argstest_block_arg_given_to_no_args511,13353 def test_block_arg_given_to_matching_proctest_block_arg_given_to_matching_proc520,13609 def test_arg_matching_precedence_when_best_firsttest_arg_matching_precedence_when_best_first531,13894 def test_arg_matching_precedence_when_best_last_but_still_matches_firsttest_arg_matching_precedence_when_best_last_but_still_matches_first539,14103 def test_never_and_never_calledtest_never_and_never_called547,14335 def test_never_and_called_oncetest_never_and_called_once553,14450 def test_once_called_oncetest_once_called_once562,14689 def test_once_but_never_calledtest_once_but_never_called569,14823 def test_once_but_called_twicetest_once_but_called_twice577,15042 def test_twice_and_called_twicetest_twice_and_called_twice587,15293 def test_zero_or_more_called_zerotest_zero_or_more_called_zero595,15448 def test_zero_or_more_called_oncetest_zero_or_more_called_once601,15570 def test_zero_or_more_called_100test_zero_or_more_called_100608,15703 def test_timestest_times615,15849 def test_at_least_called_oncetest_at_least_called_once622,15990 def test_at_least_but_never_calledtest_at_least_but_never_called629,16137 def test_at_least_once_but_called_twicetest_at_least_once_but_called_twice637,16372 def test_at_least_and_exacttest_at_least_and_exact645,16543 def test_at_most_but_never_calledtest_at_most_but_never_called655,16805 def test_at_most_called_oncetest_at_most_called_once661,16941 def test_at_most_called_twicetest_at_most_called_twice668,17086 def test_at_most_and_at_least_called_nevertest_at_most_and_at_least_called_never679,17394 def test_at_most_and_at_least_called_oncetest_at_most_and_at_least_called_once688,17700 def test_at_most_and_at_least_called_twicetest_at_most_and_at_least_called_twice695,17873 def test_at_most_and_at_least_called_three_timestest_at_most_and_at_least_called_three_times703,18061 def test_call_counts_only_apply_to_matching_argstest_call_counts_only_apply_to_matching_args714,18371 def test_call_counts_only_apply_to_matching_args_with_mismatchtest_call_counts_only_apply_to_matching_args_with_mismatch726,18649 def test_ordered_calls_in_order_will_passtest_ordered_calls_in_order_will_pass742,19119 def test_ordered_calls_out_of_order_will_failtest_ordered_calls_out_of_order_will_fail752,19301 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 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 def test_unordered_calls_do_not_effect_ordered_testingtest_unordered_calls_do_not_effect_ordered_testing786,20229 def test_ordered_with_multiple_calls_will_passtest_ordered_with_multiple_calls_will_pass800,20493 def test_grouped_ordering_with_numberstest_grouped_ordering_with_numbers812,20702 def test_grouped_ordering_with_symbolstest_grouped_ordering_with_symbols827,21017 def test_explicit_ordering_mixed_with_implicit_ordering_should_not_overlaptest_explicit_ordering_mixed_with_implicit_ordering_should_not_overlap842,21373 def test_explicit_ordering_with_explicit_misorderstest_explicit_ordering_with_explicit_misorders852,21746 def test_ordering_with_explicit_no_args_matches_correctlytest_ordering_with_explicit_no_args_matches_correctly868,22321 def test_ordering_with_any_arg_matching_correctly_matchestest_ordering_with_any_arg_matching_correctly_matches880,22694 def test_ordering_between_mocks_is_not_normally_definedtest_ordering_between_mocks_is_not_normally_defined891,23002 def test_ordering_between_mocks_is_honored_for_global_orderingtest_ordering_between_mocks_is_honored_for_global_ordering903,23256 def test_expectation_formatingtest_expectation_formating915,23612 def test_multi_expectation_formattingtest_multi_expectation_formatting924,23840 def test_explicit_ordering_with_limits_allow_multiple_return_valuestest_explicit_ordering_with_limits_allow_multiple_return_values930,24003 def test_global_methods_can_be_mockedtest_global_methods_can_be_mocked949,24714 def test_kernel_methods_can_be_mockedtest_kernel_methods_can_be_mocked955,24898 def test_undefing_kernel_methods_dont_effect_other_mockstest_undefing_kernel_methods_dont_effect_other_mocks961,25076 def test_expectations_can_by_marked_as_defaulttest_expectations_can_by_marked_as_default969,25344 def test_default_expectations_are_search_in_the_proper_ordertest_default_expectations_are_search_in_the_proper_order975,25506 def test_expectations_with_count_constraints_can_by_marked_as_defaulttest_expectations_with_count_constraints_can_by_marked_as_default983,25809 def test_default_expectations_are_overridden_by_later_expectationstest_default_expectations_are_overridden_by_later_expectations991,26045 def test_default_expectations_can_be_changed_by_later_expectationstest_default_expectations_can_be_changed_by_later_expectations999,26273 def test_ordered_default_expectations_can_be_specifiedtest_ordered_default_expectations_can_be_specified1010,26635 def test_ordered_default_expectations_can_be_overriddentest_ordered_default_expectations_can_be_overridden1018,26876 def test_by_default_works_at_mock_leveltest_by_default_works_at_mock_level1030,27147 def test_by_default_at_mock_level_does_nothing_with_no_expectationstest_by_default_at_mock_level_does_nothing_with_no_expectations1041,27422 def test_partial_mocks_can_have_default_expectationstest_partial_mocks_can_have_default_expectations1047,27567 def test_partial_mocks_can_have_default_expectations_overriddentest_partial_mocks_can_have_default_expectations_overridden1053,27748 def test_wicked_and_evil_tricks_with_by_default_are_thwartedtest_wicked_and_evil_tricks_with_by_default_are_thwarted1060,27996 def test_mocks_can_handle_multi_parameter_respond_tostest_mocks_can_handle_multi_parameter_respond_tos1072,28401 def test_backtraces_point_to_should_receive_linetest_backtraces_point_to_should_receive_line1083,28748 def test_can_mock_operatorstest_can_mock_operators1097,29148 def assert_operator(op, &block)assert_operator1127,30212 class TestFlexMockShouldsWithInclude < Test::Unit::TestCaseTestFlexMockShouldsWithInclude1135,30366 def test_include_enables_unqualified_arg_type_referencestest_include_enables_unqualified_arg_type_references1137,30460 class TestFlexMockArgTypesDontLeak < Test::Unit::TestCaseTestFlexMockArgTypesDontLeak1145,30624 def test_unqualified_arg_type_references_are_undefined_by_defaulttest_unqualified_arg_type_references_are_undefined_by_default1146,30682 test/spys_test.rb,3062 class TestSpys < Test::Unit::TestCaseTestSpys5,48 class FooBarFooBar8,116 def foofoo9,131 def barbar12,165 def setupsetup16,192 def test_spy_detects_simple_calltest_spy_detects_simple_call21,254 def test_spy_detects_simple_call_ignoring_argstest_spy_detects_simple_call_ignoring_args26,342 def test_spy_rejects_a_never_made_calltest_spy_rejects_a_never_made_call31,451 def test_spy_detects_call_with_literal_argtest_spy_detects_call_with_literal_arg36,549 def test_spy_detects_call_with_class_argtest_spy_detects_call_with_class_arg41,653 def test_spy_rejects_call_with_non_matching_literal_argtest_spy_rejects_call_with_non_matching_literal_arg46,761 def test_spy_detects_call_with_multiple_argumentstest_spy_detects_call_with_multiple_arguments51,882 def test_spy_detects_multiple_calls_with_different_argumentstest_spy_detects_multiple_calls_with_different_arguments56,1021 def test_spy_rejects_if_times_options_not_matchingtest_spy_rejects_if_times_options_not_matching62,1174 def test_spy_detects_a_blocktest_spy_detects_a_block68,1321 def test_spy_rejects_a_blocktest_spy_rejects_a_block73,1415 def test_spy_detects_a_missing_blocktest_spy_detects_a_missing_block78,1531 def test_spy_rejects_a_missing_blocktest_spy_rejects_a_missing_block83,1647 def test_spy_ignores_blocktest_spy_ignores_block88,1749 def test_spy_accepts_correct_additional_validationstest_spy_accepts_correct_additional_validations93,1841 def test_spy_accepts_multiple_additional_validations_first_failingtest_spy_accepts_multiple_additional_validations_first_failing99,2028 def test_spy_accepts_multiple_additional_validations_second_failingtest_spy_accepts_multiple_additional_validations_second_failing108,2344 def test_spy_rejects_incorrect_additional_validationstest_spy_rejects_incorrect_additional_validations117,2661 def test_spy_selectively_applies_additional_validationstest_spy_selectively_applies_additional_validations125,2909 def assert_failed(message_pattern)assert_failed135,3201 def test_spy_methods_can_be_stubbedtest_spy_methods_can_be_stubbed146,3444 def test_spy_cannot_see_normal_methodstest_spy_cannot_see_normal_methods153,3619 def test_spy_cannot_see_normal_methods2test_spy_cannot_see_normal_methods2160,3776 def test_calling_non_spy_base_methods_is_an_errortest_calling_non_spy_base_methods_is_an_error167,3961 def test_cant_put_expectations_on_non_base_class_methodsxtest_cant_put_expectations_on_non_base_class_methodsx173,4078 def test_cant_put_expectations_on_non_base_class_methods_unless_explicittest_cant_put_expectations_on_non_base_class_methods_unless_explicit182,4418 def test_ok_to_use_explicit_even_when_its_not_neededtest_ok_to_use_explicit_even_when_its_not_needed188,4604 def test_can_spy_on_partial_mockstest_can_spy_on_partial_mocks194,4770 def test_can_spy_on_class_defined_methodstest_can_spy_on_class_defined_methods203,4984 def test_can_spy_on_regular_mockstest_can_spy_on_regular_mocks209,5146 test/symbol_extensions_test.rb,161 class SymbolEtentensionsTest < Test::Unit::TestCaseSymbolEtentensionsTest3,27 def test_as_name_converts_appropriatlytest_as_name_converts_appropriatly4,79 test/test_class_extensions.rb,477 class ClassExtensionsTest < Test::Unit::TestCaseClassExtensionsTest3,27 class DogDog5,77 def wagwag6,89 def method_missing(sym, *args, &block)method_missing9,110 def responds_to?(sym)responds_to?17,233 def test_class_directly_defines_methodtest_class_directly_defines_method22,302 def test_class_indirectly_defines_methodtest_class_indirectly_defines_method26,389 def test_class_does_not_define_methodtest_class_does_not_define_method30,481 test/test_setup.rb,339 class FlexMockFlexMock7,91 module TestCaseTestCase8,106 def assertion_failed_errorassertion_failed_error9,124 def assert_failure(options={}, &block)assert_failure16,378 def assert_mock_failure(options={}, &block)assert_mock_failure33,930 def assert_matching_line(ex, file, options)assert_matching_line47,1403 Ð’Á:ƒ,263 class TestFlexmockTestUnit < Test::Unit::TestCaseTestFlexmockTestUnit17,375 def teardownteardown18,425 def test_can_create_mockstest_can_create_mocks23,484 def test_should_fail__mocks_are_auto_verifiedtest_should_fail__mocks_are_auto_verified30,627 /var/folders/b9/zwv8g_296jq17rcjpjw_94jc0000gn/T//tags.wSbSTw,1606 class TestTuIntegrationFlexMockMethod < Test::Unit::TestCaseTestTuIntegrationFlexMockMethod19,548 def test_can_construct_flexmocktest_can_construct_flexmock22,643 def test_can_construct_flexmock_with_blocktest_can_construct_flexmock_with_block28,800 class TestTuIntegrationMockVerificationInTeardown < Test::Unit::TestCaseTestTuIntegrationMockVerificationInTeardown36,990 def teardownteardown39,1097 def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown45,1193 class TestTuIntegrationMockVerificationWithoutSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationWithoutSetup50,1319 def teardownteardown53,1428 def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown59,1524 class TestTuIntegrationMockVerificationForgetfulSetup < Test::Unit::TestCaseTestTuIntegrationMockVerificationForgetfulSetup64,1650 def teardownteardown67,1761 def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown73,1857 class TestTuIntegrationSetupOverridenAndNoMocksOk < Test::Unit::TestCaseTestTuIntegrationSetupOverridenAndNoMocksOk78,1983 def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown81,2090 class TestTuIntegrationFailurePreventsVerification < Test::Unit::TestCaseTestTuIntegrationFailurePreventsVerification85,2159 def test_mock_verification_occurs_during_teardowntest_mock_verification_occurs_during_teardown88,2267 def simulate_failuresimulate_failure95,2411 test/undefined_test.rb,873 class UndefinedTest < Test::Unit::TestCaseUndefinedTest14,321 def test_undefined_method_calls_return_undefinedtest_undefined_method_calls_return_undefined15,364 def test_equalstest_equals19,482 def test_math_operatorstest_math_operators24,580 def test_math_operators_reversedtest_math_operators_reversed32,789 def test_comparisonstest_comparisons40,1007 def test_comparisons_reversedtest_comparisons_reversed48,1216 def test_base_level_methodstest_base_level_methods56,1434 def test_cant_create_a_new_undefinedtest_cant_create_a_new_undefined60,1521 def test_cant_clone_undefinedtest_cant_clone_undefined64,1631 def test_string_representationstest_string_representations69,1765 def test_undefined_is_not_niltest_undefined_is_not_nil74,1903 def assert_undefined(obj)assert_undefined80,1981 def undefinedundefined84,2044 ,40 class DogDog3,36 def barkbark4,46 ,0