diff options
author | utilum <oz@utilum.com> | 2018-04-13 07:23:19 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-04-15 10:09:38 +0200 |
commit | 86cafe7c9ddfd7e53f8596187c960bb893590844 (patch) | |
tree | 1782b12306b62af997bee463ed6f30c68235c9f2 /activesupport/test/cache | |
parent | d472229f1fb76f73b6bc678191057a554ce52f51 (diff) | |
download | rails-86cafe7c9ddfd7e53f8596187c960bb893590844.tar.gz rails-86cafe7c9ddfd7e53f8596187c960bb893590844.tar.bz2 rails-86cafe7c9ddfd7e53f8596187c960bb893590844.zip |
2.6 warning: passing splat keyword arguments as a single Hash
Ruby 2.6.0 warns about this.
``` ruby -v
ruby 2.6.0dev (2018-04-04 trunk 63085) [x86_64-linux]
```
Before, see:
https://travis-ci.org/rails/rails/jobs/365740163#L1262-L1264
https://travis-ci.org/rails/rails/jobs/365944863#L2121-L2174
Diffstat (limited to 'activesupport/test/cache')
-rw-r--r-- | activesupport/test/cache/behaviors/cache_store_behavior.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/cache/behaviors/cache_store_behavior.rb b/activesupport/test/cache/behaviors/cache_store_behavior.rb index e2146a1b3a..f6763d195a 100644 --- a/activesupport/test/cache/behaviors/cache_store_behavior.rb +++ b/activesupport/test/cache/behaviors/cache_store_behavior.rb @@ -454,8 +454,8 @@ module CacheStoreBehavior def assert_compression(should_compress, value, **options) freeze_time do - @cache.write("actual", value, **options) - @cache.write("uncompressed", value, **options, compress: false) + @cache.write("actual", value, options) + @cache.write("uncompressed", value, options.merge(compress: false)) end if value.nil? |