Skip to content

Commit

Permalink
Fix standard issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fractaledmind committed Jan 23, 2024
1 parent be056f5 commit 710900a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/litestream_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions test/tasks/test_litestream_tasks.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 710900a

Please sign in to comment.