Introduce ParserError exception class

This commit is contained in:
Olle Jonsson
2015-10-21 23:13:42 +02:00
parent 2dda090e6b
commit 5a9928c18a
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ describe GitHubChangelogGenerator::ParserFile do
let(:options) { { params_file: "spec/files/github_changelog_params_incorrect" } }
let(:options_before_change) { options.dup }
let(:parse) { GitHubChangelogGenerator::ParserFile.new(options) }
it { expect { parse.parse! }.to raise_error }
it { expect { parse.parse! }.to raise_error(GitHubChangelogGenerator::ParserError) }
end
context "when override default values" do