diff options
Diffstat (limited to 'test/rubygems/test_gem_commands_outdated_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_outdated_command.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_commands_outdated_command.rb b/test/rubygems/test_gem_commands_outdated_command.rb index 72696d6549..eee273af5c 100644 --- a/test/rubygems/test_gem_commands_outdated_command.rb +++ b/test/rubygems/test_gem_commands_outdated_command.rb @@ -14,13 +14,10 @@ class TestGemCommandsOutdatedCommand < Gem::TestCase end def test_execute - remote_10 = quick_spec 'foo', '1.0' - remote_20 = quick_spec 'foo', '2.0' - - Gem::RemoteFetcher.fetcher = @fetcher = Gem::FakeFetcher.new - - util_clear_gems - util_setup_spec_fetcher remote_10, remote_20 + spec_fetcher do |fetcher| + fetcher.spec 'foo', '1.0' + fetcher.spec 'foo', '2.0' + end quick_gem 'foo', '0.1' quick_gem 'foo', '0.2' |