From 6d62045890b7ac9945e426565a05f490dd1fe94d Mon Sep 17 00:00:00 2001 From: Jim Gay Date: Thu, 11 Apr 2024 23:22:14 -0400 Subject: [PATCH] Fix incorrect file name for tests --- CHANGELOG.md | 2 ++ test/test_changelog_updater.rb | 6 +++--- test/test_reissue.rb | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00a9f8c..35be851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.1.1 - Unreleased ### Added: - bundle install when running reissue +### Fixed: +- bug in tests loading the changelog fixture ## 0.1.0 - 2024-04-11 ### Added: diff --git a/test/test_changelog_updater.rb b/test/test_changelog_updater.rb index 48a1041..a4ace31 100644 --- a/test/test_changelog_updater.rb +++ b/test/test_changelog_updater.rb @@ -5,7 +5,7 @@ class TestChangelogUpdater < Minitest::Spec describe "call" do before do - @file = File.expand_path("fixtures/CHANGELOG.md", __dir__) + @file = File.expand_path("fixtures/changelog.md", __dir__) @tempfile = Tempfile.new @changelog_updater = Reissue::ChangelogUpdater.new(@file) end @@ -34,7 +34,7 @@ class TestChangelogUpdater < Minitest::Spec describe "update" do before do - @file = File.expand_path("fixtures/CHANGELOG.md", __dir__) + @file = File.expand_path("fixtures/changelog.md", __dir__) @changelog_updater = Reissue::ChangelogUpdater.new(@file) end @@ -62,7 +62,7 @@ class TestChangelogUpdater < Minitest::Spec describe "write" do before do - @file = File.expand_path("fixtures/CHANGELOG.md", __dir__) + @file = File.expand_path("fixtures/changelog.md", __dir__) @changelog_updater = Reissue::ChangelogUpdater.new(@file) end diff --git a/test/test_reissue.rb b/test/test_reissue.rb index 3a26036..1366ab9 100644 --- a/test/test_reissue.rb +++ b/test/test_reissue.rb @@ -21,7 +21,7 @@ class TestReissue < Minitest::Spec version_file << File.read(fixture_version) version_file.close - fixture_changelog = File.expand_path("fixtures/CHANGELOG.md", __dir__) + fixture_changelog = File.expand_path("fixtures/changelog.md", __dir__) changelog_file = Tempfile.new changelog_file << File.read(fixture_changelog) changelog_file.close @@ -42,7 +42,7 @@ class TestReissue < Minitest::Spec describe "finalize" do it "updates the contents of the changelog file" do - fixture_changelog = File.expand_path("fixtures/CHANGELOG.md", __dir__) + fixture_changelog = File.expand_path("fixtures/changelog.md", __dir__) changelog_file = Tempfile.new changelog_file << File.read(fixture_changelog) changelog_file.close