rubygem-flexmock/rubygem-flexmock-2.3.6-accept-keywords.patch
chen-jan b442c66bc2 fix build error by upgrading to ruby3
(cherry picked from commit 167f372e457c0b817620573165b7a92c49ed5bda)
2022-03-23 10:48:04 +08:00

16 lines
723 B
Diff

diff -urp '--exclude=*~' flexmock-2.3.6/lib.orig/flexmock/composite_expectation.rb flexmock-2.3.6/lib/flexmock/composite_expectation.rb
--- flexmock-2.3.6/lib.orig/flexmock/composite_expectation.rb 2021-01-24 01:35:33.614853539 +0900
+++ flexmock-2.3.6/lib/flexmock/composite_expectation.rb 2021-01-24 02:27:58.007313654 +0900
@@ -16,9 +16,9 @@ class FlexMock
end
# Apply the constraint method to all expectations in the composite.
- def method_missing(sym, *args, &block)
+ def method_missing(sym, *args, **keywords, &block)
@expectations.each do |expectation|
- expectation.send(sym, *args, &block)
+ expectation.send(sym, *args, **keywords, &block)
end
self
end