You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Official support for Ruby 3.2 ([#126](https://github.com/clarkedb/grift/pull/126))
22
-
* Support for finite/self-terminating mocking for more precision in testing where a method may get called multiple times
23
-
+ The Grift API now supports `mock_return_value_once`,`mock_return_value_n_times`, and `mock_return_values_in_order` ([#135](https://github.com/clarkedb/grift/pull/135))
24
-
+ The Grift API now supports `mock_implementation_once` and `mock_implementation_n_times` ([#136](https://github.com/clarkedb/grift/pull/136))
34
+
- Official support for Ruby 3.2 ([#126](https://github.com/clarkedb/grift/pull/126))
35
+
- Support for finite/self-terminating mocking for more precision in testing where a method may get called multiple times
36
+
- The Grift API now supports `mock_return_value_once`, `mock_return_value_n_times`, and `mock_return_values_in_order` ([#135](https://github.com/clarkedb/grift/pull/135))
37
+
- The Grift API now supports `mock_implementation_once` and `mock_implementation_n_times` ([#136](https://github.com/clarkedb/grift/pull/136))
* When spying on a method that takes a block, the block now gets forwarded to the original method ([#78](https://github.com/clarkedb/grift/pull/78))
31
-
* When mocking the implementation, if a block is not provided a `Grift::Error` is raised instead of a `LocalJumpError` ([#77](https://github.com/clarkedb/grift/pull/77))
43
+
- When spying on a method that takes a block, the block now gets forwarded to the original method ([#78](https://github.com/clarkedb/grift/pull/78))
44
+
- When mocking the implementation, if a block is not provided a `Grift::Error` is raised instead of a `LocalJumpError` ([#77](https://github.com/clarkedb/grift/pull/77))
This version adds true keyword argument support for Ruby 3. See below for how to handle breaking changes.
36
49
37
50
### Changed
38
51
39
-
* Dropped support for Ruby 2.5 ([#69](https://github.com/clarkedb/grift/pull/69))
40
-
* Dropped support for Ruby 2.6 ([#72](https://github.com/clarkedb/grift/pull/72))
41
-
* To support keyword arguments, records of call arguments are no longer stored in simple arrays but in a custom Enumerable ([#72](https://github.com/clarkedb/grift/pull/72))
42
-
+ This changes the way that your tests will interact with mock calls
43
-
+ When before `calls` returned an array, it returns a `Grift::MockMethod::MockExecutions::MockArguments` object
44
-
+ Migrating to maintain previous behavior just requires appending `.args` to `calls[i]`
52
+
- Dropped support for Ruby 2.5 ([#69](https://github.com/clarkedb/grift/pull/69))
53
+
- Dropped support for Ruby 2.6 ([#72](https://github.com/clarkedb/grift/pull/72))
54
+
- To support keyword arguments, records of call arguments are no longer stored in simple arrays but in a custom Enumerable ([#72](https://github.com/clarkedb/grift/pull/72))
55
+
- This changes the way that your tests will interact with mock calls
56
+
- When before `calls` returned an array, it returns a `Grift::MockMethod::MockExecutions::MockArguments` object
57
+
- Migrating to maintain previous behavior just requires appending `.args` to `calls[i]`
45
58
46
59
### Added
47
60
48
-
* Support for mocking private instance and class methods ([#68](https://github.com/clarkedb/grift/pull/68))
49
-
* Support for mocking methods that take positional and keyword arguments ([#72](https://github.com/clarkedb/grift/pull/72))
61
+
- Support for mocking private instance and class methods ([#68](https://github.com/clarkedb/grift/pull/68))
62
+
- Support for mocking methods that take positional and keyword arguments ([#72](https://github.com/clarkedb/grift/pull/72))
50
63
51
64
### Fixed
52
65
53
-
* When mocking protected methods, the method now remains protected while mocked and after unmocking ([#68](https://github.com/clarkedb/grift/pull/68))
54
-
* When mocking inherited methods, the method goes back to the ancestor's definition after unmocking ([#69](https://github.com/clarkedb/grift/pull/69))
55
-
* When mocking methods with keyword arugments in Ruby 3.x, no error is thrown ([#72](https://github.com/clarkedb/grift/pull/72))
66
+
- When mocking protected methods, the method now remains protected while mocked and after unmocking ([#68](https://github.com/clarkedb/grift/pull/68))
67
+
- When mocking inherited methods, the method goes back to the ancestor's definition after unmocking ([#69](https://github.com/clarkedb/grift/pull/69))
68
+
- When mocking methods with keyword arugments in Ruby 3.x, no error is thrown ([#72](https://github.com/clarkedb/grift/pull/72))
0 commit comments