Sha256: b5254da0bbb6a2cbd10afed0b5f46c0c07945017c09e11de62396cb151a9ee33

Contents?: true

Size: 445 Bytes

Versions: 35

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require_relative "../util/changelog"
require "rubygems/commands/setup_command"
require_relative "rubygems/helper"

class ChangelogTest < Test::Unit::TestCase
  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

35 entries across 35 versions & 1 rubygems

Version Path
rubygems-update-3.3.27 test/test_changelog_generator.rb
rubygems-update-3.4.17 test/test_changelog_generator.rb
rubygems-update-3.4.16 test/test_changelog_generator.rb
rubygems-update-3.4.15 test/test_changelog_generator.rb
rubygems-update-3.4.14 test/test_changelog_generator.rb
rubygems-update-3.4.13 test/test_changelog_generator.rb
rubygems-update-3.4.12 test/test_changelog_generator.rb
rubygems-update-3.4.11 test/test_changelog_generator.rb
rubygems-update-3.4.10 test/test_changelog_generator.rb
rubygems-update-3.4.9 test/test_changelog_generator.rb
rubygems-update-3.4.8 test/test_changelog_generator.rb
rubygems-update-3.4.7 test/test_changelog_generator.rb
rubygems-update-3.4.6 test/test_changelog_generator.rb
rubygems-update-3.4.5 test/test_changelog_generator.rb
rubygems-update-3.4.4 test/test_changelog_generator.rb
rubygems-update-3.4.3 test/test_changelog_generator.rb
rubygems-update-3.4.2 test/test_changelog_generator.rb
rubygems-update-3.4.1 test/test_changelog_generator.rb
rubygems-update-3.4.0 test/test_changelog_generator.rb
rubygems-update-3.3.26 test/test_changelog_generator.rb