rubygem-flexmock/rubygem-flexmock-2.3.6-accept-keywords.patch
Mamoru TASAKA 69f054c9a8 Patch to support ruby 3.0
Use binding.source_location for test
  Properly accept argument and keywords
  Relax error message on test a bit
2021-01-24 03:20:08 +09:00

15 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