Skip to content

Commit

Permalink
Fix incorrect file name for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Apr 12, 2024
1 parent 8b59ead commit 6d62045
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions test/test_changelog_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions test/test_reissue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6d62045

Please sign in to comment.