Skip to content


Need to be able to run tests, thanks! #2

merged 1 commit into from

2 participants


Without the patch you see:

rake test
(in /Users/njero/Projects/Web/slimgems)
/Users/njero/Projects/Web/slimgems/test/../lib/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- rubygems/test_case (LoadError)
  from /Users/njero/Projects/Web/slimgems/test/../lib/rubygems/custom_require.rb:29:in `require'
  from ./test/test_gem_silent_ui.rb:1
  from /Users/njero/.rvm/gems/ree-1.8.7-2010.02@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'
  from /Users/njero/.rvm/gems/ree-1.8.7-2010.02@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
  from /Users/njero/.rvm/gems/ree-1.8.7-2010.02@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
  from /Users/njero/.rvm/gems/ree-1.8.7-2010.02@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/Users/njero/.rvm/rubies/ree-1.8.7-2010.02...]
@lsegal lsegal merged commit b8e77e2 into slimgems:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 4 deletions.
  1. +3 −4 test/test_gem_silent_ui.rb
7 test/test_gem_silent_ui.rb
@@ -1,8 +1,7 @@
-require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'
-class TestGemSilentUI < Gem::TestCase
+class TestGemSilentUI < RubyGemTestCase
def setup
@@ -49,7 +48,7 @@ def test_ask_yes_no
assert_empty out, 'No output'
assert_empty err, 'No output'
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', true
@@ -60,7 +59,7 @@ def test_ask_yes_no
assert_empty err, 'No output'
assert value, 'Value is true'
out, err = capture_io do
use_ui @sui do
value = @sui.ask_yes_no 'Problem?', false
Something went wrong with that request. Please try again.