include default options in tags tests
Signed-off-by: Tom Duffield <tom@chef.io>
This commit is contained in:
parent
5932cb730b
commit
ce63f648ac
|
@ -17,8 +17,9 @@ describe GitHubChangelogGenerator::Generator do
|
||||||
let(:all_tags) { tags_from_strings(%w(8 7 6 5 4 3 2 1)) }
|
let(:all_tags) { tags_from_strings(%w(8 7 6 5 4 3 2 1)) }
|
||||||
let(:sorted_tags) { all_tags }
|
let(:sorted_tags) { all_tags }
|
||||||
|
|
||||||
|
let(:default_options) { GitHubChangelogGenerator::Parser.default_options }
|
||||||
let(:options) { {} }
|
let(:options) { {} }
|
||||||
let(:generator) { GitHubChangelogGenerator::Generator.new(options) }
|
let(:generator) { described_class.new(default_options.merge(options)) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
allow_any_instance_of(GitHubChangelogGenerator::OctoFetcher).to receive(:get_all_tags).and_return(all_tags)
|
allow_any_instance_of(GitHubChangelogGenerator::OctoFetcher).to receive(:get_all_tags).and_return(all_tags)
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user