Skip to content

Commit

Permalink
Merge pull request slimgems#2 from jeffrafter/dd5a3482cefb99b71733958…
Browse files Browse the repository at this point in the history
…8c6fea035c67d0f64

Need to be able to run tests, thanks!
  • Loading branch information
lsegal committed Jun 2, 2011
2 parents 16fb2d7 + dd5a348 commit b8e77e2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test_gem_silent_ui.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require 'rubygems/test_case'
require 'rubygems/user_interaction'
require 'timeout'

class TestGemSilentUI < Gem::TestCase
class TestGemSilentUI < RubyGemTestCase

def setup
super
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b8e77e2

Please sign in to comment.