From ef821507b14d77c7dc64780a957017733fd9239c Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Wed, 8 Jul 2020 11:47:56 -0700 Subject: [PATCH] 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 ``` --- lib/shoulda/matchers/util/word_wrap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shoulda/matchers/util/word_wrap.rb b/lib/shoulda/matchers/util/word_wrap.rb index 8f6077d2..5962e016 100644 --- a/lib/shoulda/matchers/util/word_wrap.rb +++ b/lib/shoulda/matchers/util/word_wrap.rb @@ -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