2016-02-01 07:43:26 -05:00
|
|
|
# frozen_string_literal: true
|
2021-06-01 23:32:47 -04:00
|
|
|
require_relative 'helper'
|
2007-12-20 03:39:12 -05:00
|
|
|
require 'rubygems/commands/server_command'
|
|
|
|
|
2011-01-28 18:46:47 -05:00
|
|
|
class TestGemCommandsServerCommand < Gem::TestCase
|
2007-12-20 03:39:12 -05:00
|
|
|
def setup
|
|
|
|
super
|
|
|
|
|
|
|
|
@cmd = Gem::Commands::ServerCommand.new
|
|
|
|
end
|
|
|
|
|
2021-10-28 04:28:59 -04:00
|
|
|
def test_execute
|
|
|
|
use_ui @ui do
|
|
|
|
@cmd.execute
|
2009-06-09 17:38:59 -04:00
|
|
|
end
|
|
|
|
|
2021-10-28 04:28:59 -04:00
|
|
|
assert_match %r{Install the rubygems-server}i, @ui.error
|
2009-06-09 17:38:59 -04:00
|
|
|
end
|
2007-12-20 03:39:12 -05:00
|
|
|
end
|