summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-12 01:16:11 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-12 01:16:11 +0000
commit067e24d6e2dcba092b3afc56bf65ccc0befa231f (patch)
tree282dddb649bfcb8384f33707312d99e2b5eb9b2c /test/rubygems
parent80c90e1b6b2839a419da79e2582c7d19edc59fa4 (diff)
downloadruby-067e24d6e2dcba092b3afc56bf65ccc0befa231f.tar.gz
* test/rubygems/insure_session.rb: Remove unused test file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/insure_session.rb43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/rubygems/insure_session.rb b/test/rubygems/insure_session.rb
deleted file mode 100644
index 8a6df89246..0000000000
--- a/test/rubygems/insure_session.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-require 'rubygems'
-
-def install_session
- path_to_gem = File.join("redist", "session.gem")
- begin
- Gem::Installer.new(path_to_gem).install
- rescue Errno::EACCES => ex
- puts
- puts "*****************************************************************"
- puts "Unable to install Gem 'Session'."
- puts "Reason: #{ex.message}"
- puts "Try running:"
- puts
- puts " gem -Li #{path_to_gem}"
- puts
- puts "with the appropriate admin privileges."
- puts "*****************************************************************"
- puts
- exit
- end
- gem 'session'
-end
-
-begin
- require 'session'
-rescue LoadError => e
- puts
- puts "Required Gem 'Session' missing."
- puts "We can attempt to install from the RubyGems Distribution,"
- puts "but installation may require admin privileges on your system."
- puts
- print "Install now from RubyGems distribution? [Yn]"
- answer = gets
- if(answer =~ /^y/i || answer =~ /^[^a-zA-Z0-9]$/) then
- install_session
- puts
- puts "Retry running the functional tests."
- exit(0)
- else
- puts "Test cancelled...quitting"
- exit(1)
- end
-end