Sha256: ce8407f91f0a03bdae3084b472cdbf85473d583026616fbf04c0e3459784016c

Contents?: true

Size: 611 Bytes

Versions: 8

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

require_relative "helper"
require "open3"

class TestProjectSanity < Gem::TestCase
  def test_manifest_is_up_to_date
    pend unless File.exist?(File.expand_path('../../Rakefile', __dir__))

    _, status = Open3.capture2e("rake check_manifest")

    assert status.success?, "Expected Manifest.txt to be up to date, but it's not. Run `rake update_manifest` to sync it."
  end

  def test_require_rubygems_package
    err, status = Open3.capture2e(*ruby_with_rubygems_in_load_path, "--disable-gems", "-e", "require \"rubygems/package\"")

    assert status.success?, err
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubygems-update-3.3.18 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.17 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.16 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.15 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.14 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.13 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.12 test/rubygems/test_project_sanity.rb
rubygems-update-3.3.11 test/rubygems/test_project_sanity.rb