Merge pull request #354 from olleolleolle/bugfix/351-exclude_tags

Parse options file options into arrays, integers, flags, and other
This commit is contained in:
Olle Jonsson
2016-03-18 08:59:15 +01:00
3 changed files with 44 additions and 5 deletions

View File

@@ -1 +1,2 @@
exclude-labels=73a91042-da6f-11e5-9335-1040f38d7f90,7adf83b4-da6f-11e5-ae18-1040f38d7f90
exclude-labels=73a91042-da6f-11e5-9335-1040f38d7f90,7adf83b4-da6f-11e5-ae18-1040f38d7f90
header_label=# My changelog

View File

@@ -43,12 +43,18 @@ describe GitHubChangelogGenerator::ParserFile do
params_file: "spec/files/github_changelog_params_327"
}
end
it "reads exclude_labels into an Array" do
pending("Related with Bug #327.")
expect { parse.parse! }.to change { options[:exclude_labels] }
.from(nil)
.to(["73a91042-da6f-11e5-9335-1040f38d7f90", "7adf83b4-da6f-11e5-ae18-1040f38d7f90"])
end
it "translates given header_label into the :header option" do
expect { parse.parse! }.to change { options[:header] }
.from(nil)
.to("# My changelog")
end
end
end
end