Merge pull request #331 from olleolleolle/feature/bug-327
Test case for #327
This commit is contained in:
commit
4ceb065cae
1
spec/files/github_changelog_params_327
Normal file
1
spec/files/github_changelog_params_327
Normal file
|
@ -0,0 +1 @@
|
|||
exclude-labels=73a91042-da6f-11e5-9335-1040f38d7f90,7adf83b4-da6f-11e5-ae18-1040f38d7f90
|
|
@ -23,11 +23,11 @@ require "coveralls"
|
|||
module SpecHelper
|
||||
end
|
||||
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
||||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
||||
Coveralls::SimpleCov::Formatter,
|
||||
SimpleCov::Formatter::HTMLFormatter,
|
||||
CodeClimate::TestReporter::Formatter
|
||||
]
|
||||
])
|
||||
SimpleCov.start
|
||||
|
||||
require "github_changelog_generator"
|
||||
|
|
|
@ -36,6 +36,20 @@ describe GitHubChangelogGenerator::ParserFile do
|
|||
unreleased: false,
|
||||
header: "=== Changelog ==="))
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user