WIP: Add changelog_version method
This MR adds a changelog_version
method which extracts the most recent changelog version from the CHANGELOG.md
file, to be used in tests that check the analyzer version:
it "outputs analyzer version" do
- analyzer_version = "2.29.9"
- expect(@output).to match(/GitLab Gemnasium analyzer v#{analyzer_version}/i)
+ changelog_version = GitlabSecure::IntegrationTest::Comparable.changelog_version
+ expect(@output).to match(/GitLab Gemnasium analyzer v#{changelog_version}/i)
end