Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions 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
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