Skip to content

Commit

Permalink
word_wrap: fix Ruby 2.7 warning
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
Fatih Arslan authored and mcmire committed Aug 24, 2020
1 parent 97b9701 commit ef82150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shoulda/matchers/util/word_wrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef82150

Please sign in to comment.