diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_stale_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_stale_command.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/rubygems/test_gem_commands_stale_command.rb b/test/rubygems/test_gem_commands_stale_command.rb index 83bd3e5def..ea7493b418 100644 --- a/test/rubygems/test_gem_commands_stale_command.rb +++ b/test/rubygems/test_gem_commands_stale_command.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true -require_relative 'helper' -require 'rubygems/commands/stale_command' + +require_relative "helper" +require "rubygems/commands/stale_command" class TestGemCommandsStaleCommand < Gem::TestCase def setup @@ -11,12 +12,12 @@ class TestGemCommandsStaleCommand < Gem::TestCase def test_execute_sorts files = %w[lib/foo_bar.rb Rakefile] - foo_bar = util_spec 'foo_bar' do |gem| + foo_bar = util_spec "foo_bar" do |gem| gem.files = files end install_specs foo_bar - bar_baz = util_spec 'bar_baz' do |gem| + bar_baz = util_spec "bar_baz" do |gem| gem.files = files end install_specs bar_baz @@ -24,11 +25,11 @@ class TestGemCommandsStaleCommand < Gem::TestCase files.each do |file| filename = File.join(bar_baz.full_gem_path, file) FileUtils.mkdir_p File.dirname filename - FileUtils.touch(filename, :mtime => Time.now) + FileUtils.touch(filename, mtime: Time.now) filename = File.join(foo_bar.full_gem_path, file) FileUtils.mkdir_p File.dirname filename - FileUtils.touch(filename, :mtime => Time.now - 86400) + FileUtils.touch(filename, mtime: Time.now - 86_400) end use_ui @stub_ui do |