Skip to content

Commit

Permalink
Fix a bug for a project test
Browse files Browse the repository at this point in the history
It needs to be `File.read` to test a changelog content.
Otherwise it remains the path returned by `Dir.glob`.
  • Loading branch information
koic committed Nov 22, 2022
1 parent 06bd6bf commit 870dad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/project_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def load_feature_entries

@feature_entries = Dir["#{changelog_dir}/*.md"]

prepare_changelog_entries(@feature_entries)
prepare_changelog_entries(@feature_entries.map { |path| File.read(path) })
end

def prepare_changelog_entries(entries)
Expand Down

0 comments on commit 870dad0

Please sign in to comment.