Test case for #327
This commit is contained in:
parent
92fbf47960
commit
575f42f652
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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user