1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems/test_rake_package.rb

25 lines
559 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rubygems/test_case"
require "open3"
class TestRakePackage < Minitest::Test
def test_builds_ok
2019-07-30 21:38:00 +08:00
skip unless File.exist?(File.expand_path("../../../Rakefile", __FILE__))
output, status = Open3.capture2e("rake package")
assert_equal true, status.success?, <<~MSG.chomp
Expected `rake package` to work, but got errors:
```
#{output}
```
If you have added or removed files, make sure you run `rake update_manifest` to update the `Manifest.txt` accordingly
MSG
end
end