зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Don't use Minitest::Mock
https://github.com/rubygems/rubygems/commit/d3fa893597
This commit is contained in:
Родитель
3456335a9c
Коммит
00f5b4b546
|
@ -25,16 +25,15 @@ class TestGemCommandsOpenCommand < Gem::TestCase
|
|||
|
||||
gem 'foo', '1.0.0'
|
||||
spec = gem 'foo', '1.0.1'
|
||||
mock = Minitest::Mock.new
|
||||
mock.expect(:call, true, [spec.full_gem_path])
|
||||
|
||||
Dir.stub(:chdir, mock) do
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
assert_nothing_raised Gem::MockGemUi::TermError do
|
||||
Dir.stub(:chdir, spec.full_gem_path) do
|
||||
use_ui @ui do
|
||||
@cmd.execute
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
assert mock.verify
|
||||
assert_equal "", @ui.error
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче