Commit Graph

  • ccc8997cca
    Test type restricted methods with class mocks Michael Miller 2022-07-07 19:00:07 -0600
  • 5008923226
    Bump to 0.11.0-alpha Michael Miller 2022-07-07 18:23:54 -0600
  • 934dc2fffd
    Bump version to 0.10.6 Michael Miller 2022-07-07 18:16:54 -0600
  • c317998aba
    Bump version to 0.10.6 v0.10.6 Michael Miller 2022-07-07 18:16:54 -0600
  • 99a0013127
    Fix warnings from Crystal 1.5.0 regarding positional parameters Michael Miller 2022-07-07 18:16:37 -0600
  • 70391b2d31
    Fix warnings from Crystal 1.5.0 regarding positional parameters Michael Miller 2022-07-07 18:10:21 -0600
  • f7147299ab
    Add stub support to class methods on mocks Michael Miller 2022-07-04 20:19:13 -0600
  • c76ead4065
    Auto stub class methods Michael Miller 2022-07-04 20:16:07 -0600
  • fb5f44ef10
    Add 'new' and 'allocate' to reserved keywords Michael Miller 2022-07-04 20:06:26 -0600
  • 22a37d38f9
    Don't automatically extend StubbedType Michael Miller 2022-07-04 16:43:37 -0600
  • aa87d124e4
    Test class method stubs Michael Miller 2022-07-04 16:14:56 -0600
  • 989086c4fc
    Add method to clear recorded calls Michael Miller 2022-07-04 15:35:12 -0600
  • 056d5892fa
    Indicate class double/mock in stubbed name Michael Miller 2022-07-04 15:34:38 -0600
  • cecd2464de
    Initial code for StubbedType Michael Miller 2022-07-03 13:40:29 -0600
  • 20c9da75a8
    Add missing dot after method receiver (self) Michael Miller 2022-06-29 22:02:27 -0600
  • c8ec0ad02a
    Record calls on injected mocks Michael Miller 2022-06-28 23:36:24 -0600
  • 8aed5027aa
    Remove _spectator_calls method with filter Michael Miller 2022-06-28 23:02:46 -0600
  • 3589f23475
    Store calls to mocks and doubles Michael Miller 2022-06-28 22:54:08 -0600
  • c98edcec5d
    Add methods for recording calls to stubs Michael Miller 2022-06-08 08:18:31 -0600
  • c70e4792af
    Rename _spectator_calls to _spectator_invocations Michael Miller 2022-06-08 08:18:16 -0600
  • cb93f4eee0
    Document mock modules Michael Miller 2022-06-04 18:21:08 -0600
  • 41dea9c985
    Add missing require for spec_helper Michael Miller 2022-05-25 17:28:11 -0600
  • 4de04b2a91
    Merge branch 'master' into mock-redesign Michael Miller 2022-06-01 23:45:43 -0600
  • 989e5db389
    Remove mock-specific changes Michael Miller 2022-06-01 23:44:52 -0600
  • 69a89daeb8
    Run smoke test for nightly Michael Miller 2022-05-25 17:20:57 -0600
  • 712edf20c1
    Split spec into multiple jobs Michael Miller 2022-05-25 17:18:08 -0600
  • 96c7c84275
    Test mocked structs Michael Miller 2022-06-01 23:37:54 -0600
  • d289cbff29
    Add tests for abstract class mock Michael Miller 2022-06-01 23:13:16 -0600
  • 0a710c831a
    Test context handling with mocks Michael Miller 2022-06-01 22:23:49 -0600
  • effad28559
    Better compiler error for wrong argument type passed to mock Michael Miller 2022-06-01 22:23:39 -0600
  • 8fbcbe8b73
    Test mock scope Michael Miller 2022-06-01 22:11:32 -0600
  • 3f4216a271
    Allow passing default value stubs to mock initialization Michael Miller 2022-06-01 22:04:18 -0600
  • 225553127d
    More mock tests Michael Miller 2022-06-01 17:56:09 -0600
  • 934c92aed1
    More mock DSL tests Michael Miller 2022-05-29 00:28:38 -0600
  • b6083f0e09
    Fix passing along mock body Michael Miller 2022-05-28 10:10:20 -0600
  • 03754321b5
    Fix existing mock DSL macros Michael Miller 2022-05-28 09:18:49 -0600
  • 6060b3cd10
    Test type restrictions and ensure original methods aren't called Michael Miller 2022-05-28 09:18:03 -0600
  • fa89fa5550
    Remove problematic test and use be_a Michael Miller 2022-05-27 21:45:01 -0600
  • 959139b1ee
    Use be_a instead of be_lt for types Michael Miller 2022-05-25 18:00:05 -0600
  • d7c1c675ff
    Add missing require for spec_helper Michael Miller 2022-05-25 17:28:11 -0600
  • 03f78e3fc1
    Fix path to mock specs Michael Miller 2022-05-25 17:27:02 -0600
  • 670dd7f062
    Run smoke test for nightly Michael Miller 2022-05-25 17:20:57 -0600
  • ce7feb8f0f
    Split spec into multiple jobs Michael Miller 2022-05-25 17:18:08 -0600
  • d0e5f6ca35
    Workaround struct pass by value with `let` Michael Miller 2022-05-24 19:41:16 -0600
  • 1f6417bca5
    Skip test producing Crystal compiler bug Michael Miller 2022-05-24 19:40:48 -0600
  • 9f5b5d8576
    Add tests for mock of abstract struct Michael Miller 2022-05-24 19:30:42 -0600
  • be69018591
    Test that a class is defined Michael Miller 2022-05-24 19:29:42 -0600
  • 5132ce7329
    Don't define method body for abstract stub method Michael Miller 2022-05-24 19:25:22 -0600
  • ddaed636c4
    Remove type resolution Michael Miller 2022-05-18 20:56:04 -0600
  • 4f0e2f6e46
    Fix clearing stubs for mocks Michael Miller 2022-05-15 16:21:05 -0600
  • a39b27387c
    Add delete method to clear stubs for a mock Michael Miller 2022-05-15 16:19:55 -0600
  • 847fd38534
    Test mock names Michael Miller 2022-05-15 15:59:08 -0600
  • c98442e0ed
    Add functionality to clear stubs Michael Miller 2022-05-15 15:56:32 -0600
  • fdac99d122
    Rename thing to mock Michael Miller 2022-05-15 13:44:45 -0600
  • 37c6db250d
    Add ValueMockRegistry Michael Miller 2022-05-15 12:34:50 -0600
  • 51f133eb61
    Ensure mocking doesn't change the memory Michael Miller 2022-05-15 11:27:58 -0600
  • ac03bd439b
    Address Ameba issues Michael Miller 2022-05-15 11:06:00 -0600
  • 1adcf74c3f
    Fix stub_type when used on a sub-type Michael Miller 2022-05-15 10:59:44 -0600
  • 86b49dc20e
    Add mock registry fetch method Michael Miller 2022-05-15 00:36:29 -0600
  • 7923eb3ad0
    Fix detection of nullable return type from stubbed method Michael Miller 2022-05-15 00:19:03 -0600
  • 380d721fad
    Add ReferenceMockRegistry Michael Miller 2022-05-14 23:31:57 -0600
  • 0704fd2a48
    Adjust evaluation order of change matcher expressions Michael Miller 2022-05-14 23:30:15 -0600
  • 739629ef9d
    Reintroduce nil type check for stub value cast Michael Miller 2022-04-30 12:10:02 -0600
  • 9817b2948e
    Add mock inject macro Michael Miller 2022-04-30 11:40:54 -0600
  • 95282e7510
    Combine type stubbing macros Michael Miller 2022-04-30 11:40:17 -0600
  • 8d14be6c67
    Move spectator stub retrieval to abstract getter Michael Miller 2022-04-28 23:04:22 -0600
  • d74bc76687
    Verify that initial stubs can be overridden Michael Miller 2022-04-28 22:32:34 -0600
  • 978e6c3625
    Cleanup and docs Michael Miller 2022-04-28 22:22:07 -0600
  • ad24515d58
    Dumb fix for overriding stubbed methods with default in block Michael Miller 2022-04-28 22:11:34 -0600
  • 307c679609
    Rework stubbing type hierarchy Michael Miller 2022-04-28 22:07:12 -0600
  • 8f5f3becb4
    Some initial rework of stub macros Michael Miller 2022-04-16 23:37:00 -0600
  • 0758c19a86
    Remove need for nillable argument to cast macro Michael Miller 2022-04-16 16:33:37 -0600
  • 23d2c014b4
    Implement fallback for methods without a stub Michael Miller 2022-04-15 17:27:30 -0600
  • 6f04e0b9da
    Allow uninteresting messages through mocks Michael Miller 2022-04-15 17:17:34 -0600
  • 4b21c9e6c1
    Introduce _spectator_stub_for_method? utility method Michael Miller 2022-04-15 17:16:49 -0600
  • 3961662bf6
    Experimental mock functionality Michael Miller 2022-04-10 20:01:54 -0600
  • b0e27c69e8
    Fix equality check Michael Miller 2022-04-10 15:24:45 -0600
  • e8bac86017
    Ensure Stubbable can have stubs defined Michael Miller 2022-04-10 11:11:36 -0600
  • 477e412ac6
    Merge branch 'master' into mock-redesign Michael Miller 2022-04-10 10:18:43 -0600
  • 9b2fd7e791
    Update Ameba to 1.0 for compatibility with Crystal 1.4.0 Michael Miller 2022-04-10 10:18:25 -0600
  • 0ad1ec11f3
    Initial macros for defining and initializing mocks Michael Miller 2022-04-02 18:43:13 -0600
  • d97a62e601
    Rename constant DOUBLES to TYPES Michael Miller 2022-04-02 17:58:15 -0600
  • f6f4f9dc1e
    Test contexts and memoized values Michael Miller 2022-04-02 15:58:08 -0600
  • a6fc2a4917
    Test stub modifiers Michael Miller 2022-04-02 12:12:31 -0600
  • be1c698836
    Test stub location Michael Miller 2022-04-02 12:09:59 -0600
  • 873b1abcae
    Test null stub Michael Miller 2022-04-02 12:07:50 -0600
  • 3299c94359
    Test Allow Michael Miller 2022-04-02 12:07:39 -0600
  • f1ce914b73
    Better stub DSL tests Michael Miller 2022-04-02 12:07:30 -0600
  • 519836147e
    Restructure stub modifiers Michael Miller 2022-04-02 10:50:27 -0600
  • 318e4f3707
    Store location information in stub Michael Miller 2022-04-02 10:39:59 -0600
  • e61b31e47b
    Add docs for allow and receive Michael Miller 2022-04-02 10:25:27 -0600
  • 17592287ad
    Replace stub value method with call method Michael Miller 2022-03-31 23:07:55 -0600
  • f00ea23c47
    Rename stubs_spec.cr to stub_spec.cr Michael Miller 2022-03-31 23:07:08 -0600
  • 2131967ba6
    Workaround Crystal compiler bug Michael Miller 2022-03-31 22:54:03 -0600
  • e05ef94ef5
    Initial work on stub DSL - found bug in Crystal compiler crystal-compiler-bug-with-stub-arguments Michael Miller 2022-03-31 22:49:45 -0600
  • 003be48591
    Use responds_to? to ensure stub is cast correctly Michael Miller 2022-03-31 22:39:21 -0600
  • 9c1357da3f
    Allow passing predefined stubs in as keyword args Michael Miller 2022-03-31 18:55:12 -0600
  • c1195ef687
    Simplify macro eval by returning a lazy double Michael Miller 2022-03-31 18:54:39 -0600
  • 914def05e1
    Add docs Michael Miller 2022-03-31 18:51:28 -0600
  • 7896a3496d
    Remove unused objects Michael Miller 2022-03-30 21:11:38 -0600