Sha256: d8e87c975681e938f95e7b9925fc8cd1a5a353b62c1af334da027a7cf09b1b3c

Contents?: true

Size: 431 Bytes

Versions: 16

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

require "minitest/autorun"
require_relative "../util/changelog"
require "rubygems/commands/setup_command"

class ChangelogTest < Minitest::Test
  def setup
    @changelog = Changelog.for_rubygems(Gem::VERSION)
  end

  def test_format_header
    Time.stub :now, Time.new(2020, 1, 1) do
      assert_match Gem::Commands::SetupCommand::HISTORY_HEADER, @changelog.send(:format_header)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubygems-update-3.2.17 test/test_changelog_generator.rb
rubygems-update-3.2.16 test/test_changelog_generator.rb
rubygems-update-3.2.15 test/test_changelog_generator.rb
rubygems-update-3.2.14 test/test_changelog_generator.rb
rubygems-update-3.2.13 test/test_changelog_generator.rb
rubygems-update-3.2.12 test/test_changelog_generator.rb
rubygems-update-3.2.11 test/test_changelog_generator.rb
rubygems-update-3.2.10 test/test_changelog_generator.rb
rubygems-update-3.2.9 test/test_changelog_generator.rb
rubygems-update-3.2.8 test/test_changelog_generator.rb
rubygems-update-3.2.7 test/test_changelog_generator.rb
rubygems-update-3.2.6 test/test_changelog_generator.rb
rubygems-update-3.2.5 test/test_changelog_generator.rb
rubygems-update-3.2.4 test/test_changelog_generator.rb
rubygems-update-3.2.3 test/test_changelog_generator.rb
rubygems-update-3.2.2 test/test_changelog_generator.rb