Permalink
Browse files

Removing the rubygems test stuff and working around a horrible RR bug

  • Loading branch information...
1 parent 033aaca commit 5f2e5a8a28c9bdcf24f3136a113bd285d0cd0198 @qrush qrush committed May 24, 2009
Showing with 7 additions and 1,281 deletions.
  1. +2 −8 Rakefile
  2. +5 −1 spec/cutter_spec.rb
  3. +0 −569 spec/rubygems/gemutilities.rb
  4. +0 −64 spec/rubygems/mockgemui.rb
  5. +0 −639 spec/rubygems/test_gem_indexer.rb
View
@@ -2,8 +2,8 @@ require 'rake'
require 'rake/testtask'
require 'spec/rake/spectask'
-desc 'Run the specs and tests for rubygems'
-task :default => [:spec, :test_rubygems]
+desc 'Run the specs'
+task :default => [:spec]
desc "Clean out files that aren't needed."
task :clean do
@@ -14,12 +14,6 @@ Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--format', 'progress', '--color', '--backtrace']
end
-Rake::TestTask.new(:test_rubygems) do |t|
- t.libs << 'lib/rubygems'
- t.pattern = 'spec/rubygems/test_*.rb'
- t.verbose = false
-end
-
namespace :indexer do
desc "Create the index"
View
@@ -3,11 +3,15 @@
describe Gem::Cutter do
def stub_spec
@spec = "spec"
+
stub(Gem::Format).from_file_by_path(@temp_path).stub!.spec { @spec }
stub(@spec).to_ruby
stub(@spec).name { "test" }
stub(@spec).version { "0.0.0" }
- stub(@spec).original_name { "test-0.0.0" }
+
+ # Working around a horrible RR bug
+ def @spec.original_name() end;
+ #stub(@spec).original_name { "test-0.0.0" }
end
def mock_save_and_index
Oops, something went wrong. Retry.

0 comments on commit 5f2e5a8

Please sign in to comment.