diff --git a/lib/tasks/litestream_tasks.rake b/lib/tasks/litestream_tasks.rake index f64c4ef..bff0334 100644 --- a/lib/tasks/litestream_tasks.rake +++ b/lib/tasks/litestream_tasks.rake @@ -19,8 +19,8 @@ namespace :litestream do options = {} if (separator_index = ARGV.index("--")) ARGV.slice(separator_index + 1, ARGV.length) - .map { |pair| pair.split("=") } - .each { |opt| options[opt[0]] = opt[1] || nil } + .map { |pair| pair.split("=") } + .each { |opt| options[opt[0]] = opt[1] || nil } end Litestream::Commands.replicate(options) diff --git a/test/tasks/test_litestream_tasks.rb b/test/tasks/test_litestream_tasks.rb index 22da216..1661b43 100644 --- a/test/tasks/test_litestream_tasks.rb +++ b/test/tasks/test_litestream_tasks.rb @@ -1,7 +1,7 @@ # test/tasks/rake_task_file_test.rb -require 'test_helper' -require 'rake' +require "test_helper" +require "rake" class RakeTaskFileTaskTest < ActiveSupport::TestCase def setup @@ -50,7 +50,7 @@ def test_replicate_task_with_no_arguments def test_replicate_task_with_arguments ARGV.replace ["--", "--no-expand-env"] fake = Minitest::Mock.new - fake.expect :call, nil, [{"--no-expand-env"=>nil}] + fake.expect :call, nil, [{"--no-expand-env" => nil}] Litestream::Commands.stub :replicate, fake do Rake.application.invoke_task "litestream:replicate" end