From 507ffdb91034cfd7c8c3e7ff6e4bff61467e2f4c Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 24 Mar 2016 13:00:53 +0000 Subject: [PATCH] put filter_excluded_tags_regex after filter_excluded_tags tests --- spec/unit/generator/generator_tags_spec.rb | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spec/unit/generator/generator_tags_spec.rb b/spec/unit/generator/generator_tags_spec.rb index 0713551..04c9b50 100644 --- a/spec/unit/generator/generator_tags_spec.rb +++ b/spec/unit/generator/generator_tags_spec.rb @@ -73,22 +73,6 @@ describe GitHubChangelogGenerator::Generator do end end - describe "#filter_excluded_tags_regex" do - subject { generator.filter_excluded_tags(tags_mash_from_strings(%w(1 2 3))) } - - context "with matching regex" do - let(:generator) { GitHubChangelogGenerator::Generator.new(exclude_tags_regex: '[23]') } - it { is_expected.to be_a Array } - it { is_expected.to match_array(tags_mash_from_strings(%w(1))) } - end - - context "with non-matching regex" do - let(:generator) { GitHubChangelogGenerator::Generator.new(exclude_tags_regex: '[45]') } - it { is_expected.to be_a Array } - it { is_expected.to match_array(tags_mash_from_strings(%w(1 2 3))) } - end - end - describe "#filter_excluded_tags" do subject { generator.filter_excluded_tags(tags_mash_from_strings(%w(1 2 3))) } @@ -117,6 +101,22 @@ describe GitHubChangelogGenerator::Generator do end end + describe "#filter_excluded_tags_regex" do + subject { generator.filter_excluded_tags(tags_mash_from_strings(%w(1 2 3))) } + + context "with matching regex" do + let(:generator) { GitHubChangelogGenerator::Generator.new(exclude_tags_regex: '[23]') } + it { is_expected.to be_a Array } + it { is_expected.to match_array(tags_mash_from_strings(%w(1))) } + end + + context "with non-matching regex" do + let(:generator) { GitHubChangelogGenerator::Generator.new(exclude_tags_regex: '[45]') } + it { is_expected.to be_a Array } + it { is_expected.to match_array(tags_mash_from_strings(%w(1 2 3))) } + end + end + describe "#filter_since_tag" do context "with filled array" do subject { generator.filter_since_tag(tags_mash_from_strings(%w(1 2 3))) }