From 403e10d1e53400d88029d7582d9264ee4e3e9041 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 8f6077d25..5962e0167 100644 --- a/lib/shoulda/matchers/util/word_wrap.rb +++ b/lib/shoulda/matchers/util/word_wrap.rb @@ -5,7 +5,7 @@ module WordWrap TERMINAL_WIDTH = 72 def word_wrap(document, options = {}) - Document.new(document, options).wrap + Document.new(document, **options).wrap end end