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
This commit is contained in:
utilum 2018-04-13 07:23:19 +02:00
parent d472229f1f
commit 86cafe7c9d
2 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ module ActionCable::StreamTests
end
def receive(connection, command:, identifiers:, channel: "ActionCable::StreamTests::ChatChannel")
identifier = JSON.generate(channel: channel, **identifiers)
identifier = JSON.generate(identifiers.merge(channel: channel))
connection.dispatch_websocket_message JSON.generate(command: command, identifier: identifier)
wait_for_async
end

View File

@ -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?