aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_download_strategies.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_download_strategies.rb')
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index 3f371d461..d107d14e8 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -21,7 +21,7 @@ class AbstractDownloadStrategyTests < Homebrew::TestCase
end
def test_expand_safe_system_args_with_explicit_quiet_flag
- @args << { :quiet_flag => "--flag" }
+ @args << { quiet_flag: "--flag" }
expanded_args = @strategy.expand_safe_system_args(@args)
assert_equal %w[foo bar baz --flag], expanded_args
end
@@ -39,8 +39,8 @@ class AbstractDownloadStrategyTests < Homebrew::TestCase
def test_source_modified_time
mktemp "mtime" do
- touch "foo", :mtime => Time.now - 10
- touch "bar", :mtime => Time.now - 100
+ touch "foo", mtime: Time.now - 10
+ touch "bar", mtime: Time.now - 100
ln_s "not-exist", "baz"
assert_equal File.mtime("foo"), @strategy.source_modified_time
end