Spec: Config parse fail message tested
This commit is contained in:
parent
29b5ef3d53
commit
a997d2417d
|
@ -19,11 +19,11 @@ describe GitHubChangelogGenerator::ParserFile do
|
||||||
context "when file is incorrect" do
|
context "when file is incorrect" do
|
||||||
let(:options) { {} }
|
let(:options) { {} }
|
||||||
let(:options_before_change) { options.dup }
|
let(:options_before_change) { options.dup }
|
||||||
let(:file) { StringIO.new("unreleased_label: staging\nunreleased: false") }
|
let(:file) { StringIO.new("unreleased_label=staging\nunreleased: false") }
|
||||||
let(:parse) do
|
let(:parse) do
|
||||||
GitHubChangelogGenerator::ParserFile.new(options, file)
|
GitHubChangelogGenerator::ParserFile.new(options, file)
|
||||||
end
|
end
|
||||||
it { expect { parse.parse! }.to raise_error(GitHubChangelogGenerator::ParserError) }
|
it { expect { parse.parse! }.to raise_error(/line #2/) }
|
||||||
end
|
end
|
||||||
|
|
||||||
context "when override default values" do
|
context "when override default values" do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user