Merge pull request #331 from olleolleolle/feature/bug-327

Test case for #327
This commit is contained in:
Petr Korolev 2016-02-23 23:56:34 +02:00
commit 4ceb065cae
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1 @@
exclude-labels=73a91042-da6f-11e5-9335-1040f38d7f90,7adf83b4-da6f-11e5-ae18-1040f38d7f90

View File

@ -23,11 +23,11 @@ require "coveralls"
module SpecHelper module SpecHelper
end end
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
Coveralls::SimpleCov::Formatter, Coveralls::SimpleCov::Formatter,
SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::HTMLFormatter,
CodeClimate::TestReporter::Formatter CodeClimate::TestReporter::Formatter
] ])
SimpleCov.start SimpleCov.start
require "github_changelog_generator" require "github_changelog_generator"

View File

@ -36,6 +36,20 @@ describe GitHubChangelogGenerator::ParserFile do
unreleased: false, unreleased: false,
header: "=== Changelog ===")) header: "=== Changelog ==="))
end end
context "turns exclude-labels into an Array", bug: '#327' do
let(:options) {
{
params_file: 'spec/files/github_changelog_params_327'
}
}
it "reads exclude_labels into an Array" do
expect { parse.parse! }.to change { options[:exclude_labels] }
.from(nil)
.to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"])
end
end
end end
end end
end end