summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_setup_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-04-27 19:27:32 +0200
committerHiroshi SHIBATA <[email protected]>2020-05-08 14:13:29 +0900
commitece1690105b9e2887eeab36f67ad414049137ae2 ()
tree8083245314be2ace6b9c503251e39585d2528d7e /test/rubygems/test_gem_commands_setup_command.rb
parent64e89713dab469a162d042fbc5c3595116937e8d (diff)
[rubygems/rubygems] Install man files when bundler installed as a default gem
https://.com/rubygems/rubygems/commit/28d6d77d81
Notes: Merged: https://.com/ruby/ruby/pull/3092
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb50
1 files changed, 50 insertions, 0 deletions
@@ -28,6 +28,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase
bundler/exe/bundle
bundler/lib/bundler.rb
bundler/lib/bundler/b.rb
]
create_dummy_files(filelist)
@@ -159,6 +163,16 @@ class TestGemCommandsSetupCommand < Gem::TestCase
@cmd.rb_files_in('lib').sort
end
def test_install_lib
@cmd.extend FileUtils
@@ -173,6 +187,19 @@ class TestGemCommandsSetupCommand < Gem::TestCase
end
end
def test_install_default_bundler_gem
@cmd.extend FileUtils
@@ -266,6 +293,29 @@ class TestGemCommandsSetupCommand < Gem::TestCase
files_that_stay.each {|file| assert_path_exists file }
end
def test_show_release_notes
@default_external = @ui.outs.external_encoding
@ui.outs.set_encoding Encoding::US_ASCII