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
fix: cannot watch methods with kwargs in ruby 3 (#72)
* reproduce bug in tests
* add MockArguments to support kwargs handling
* store kwargs in all mocking styles
* drop support for ruby 2.6
* update CHANGELOG and README with changes for new args access pattern
# get kwargs for each call to the method while mocked
115
+
my_mock.mock.calls[0].kwargs
116
+
#=> { first_arg1: 'value' }
104
117
105
118
# get results (return value) for each call to the method while mocked
106
119
my_mock.mock.results
@@ -109,7 +122,7 @@ my_mock.mock.results
109
122
110
123
## Requirements
111
124
112
-
Grift supports all Ruby versions >= 2.5 (including 3.1).
125
+
Grift supports all Ruby versions >=2.7 (including 3.1).
113
126
114
127
## Development
115
128
@@ -119,7 +132,7 @@ When developing, to install Grift whith your changes onto your local machine, ru
119
132
120
133
### Docs
121
134
122
-
The docs are generated using YARD. To build the docs, first `gem install yard`. Then run `yardoc` to build the new docs. This is always done before a release to update the docs that get published and made available with the gem.
135
+
The docs are generated usingYARD. To build the docs, first `gem install yard`. Then run `yardoc` to build the new docs. This is always done before a release to update the docs that get published and made available with the gem.
0 commit comments