Test case for #327

This commit is contained in:
Olle Jonsson 2016-02-23 22:24:10 +01:00
parent e27a471fc8
commit b8f7dbaa2e
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -36,6 +36,20 @@ describe GitHubChangelogGenerator::ParserFile do
unreleased: false, unreleased: false,
header: "=== Changelog ===")) header: "=== Changelog ==="))
end end
context "turns exclude-label 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