word_wrap: fix Ruby 2.7 warning
This fixes the following warning: ``` vendor/gems/ruby/2.7.0/gems/shoulda-matchers-4.3.0/lib/shoulda/matchers/util/word_wrap.rb:8: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call ```
This commit is contained in:
parent
97b97015f4
commit
ef821507b1
|
@ -5,7 +5,7 @@ module Shoulda
|
|||
TERMINAL_WIDTH = 72
|
||||
|
||||
def word_wrap(document, options = {})
|
||||
Document.new(document, options).wrap
|
||||
Document.new(document, **options).wrap
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue