summaryrefslogtreecommitdiff
path: root/lib/rubygems/test_utilities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/test_utilities.rb')
-rw-r--r--lib/rubygems/test_utilities.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb
index 3bbe68ca0c..53c888d066 100644
--- a/lib/rubygems/test_utilities.rb
+++ b/lib/rubygems/test_utilities.rb
@@ -29,6 +29,7 @@ require 'rubygems/remote_fetcher'
# See RubyGems' tests for more examples of FakeFetcher.
class Gem::FakeFetcher
+
attr_reader :data
attr_reader :last_request
attr_accessor :paths
@@ -161,13 +162,16 @@ class Gem::FakeFetcher
download spec, source.uri.to_s
end
+
end
# :stopdoc:
class Gem::RemoteFetcher
+
def self.fetcher=(fetcher)
@fetcher = fetcher
end
+
end
# :startdoc:
@@ -187,6 +191,7 @@ end
# After the gems are created they are removed from Gem.dir.
class Gem::TestCase::SpecFetcherSetup
+
##
# Executes a SpecFetcher setup block. Yields an instance then creates the
# gems and specifications defined in the instance.
@@ -341,6 +346,7 @@ class Gem::TestCase::SpecFetcherSetup
io.write spec.to_ruby_for_cache
end
end
+
end
##
@@ -352,6 +358,7 @@ end
# This class was added to flush out problems in Rubinius' IO implementation.
class TempIO < Tempfile
+
##
# Creates a new TempIO that will be initialized to contain +string+.
@@ -369,4 +376,5 @@ class TempIO < Tempfile
flush
Gem.read_binary path
end
+
end