diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-30 15:47:53 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-30 15:47:53 +0300 |
commit | 9da3076944146444cb864d5db066a766c76b1935 (patch) | |
tree | 85be2f080e31d3ad9f5243b49dbc4366cd0f9f71 /spec/lib/banzai/filter/external_issue_reference_filter_spec.rb | |
parent | 81dba76b9d7d120cd22e3619a4058bd4885be9bc (diff) |
Improve support for external issue references
Diffstat (limited to 'spec/lib/banzai/filter/external_issue_reference_filter_spec.rb')
-rw-r--r-- | spec/lib/banzai/filter/external_issue_reference_filter_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/banzai/filter/external_issue_reference_filter_spec.rb b/spec/lib/banzai/filter/external_issue_reference_filter_spec.rb index a4bb043f8f1..b7d82c36ddd 100644 --- a/spec/lib/banzai/filter/external_issue_reference_filter_spec.rb +++ b/spec/lib/banzai/filter/external_issue_reference_filter_spec.rb @@ -88,12 +88,12 @@ describe Banzai::Filter::ExternalIssueReferenceFilter, lib: true do it 'queries the collection on the first call' do expect_any_instance_of(Project).to receive(:default_issues_tracker?).once.and_call_original - expect_any_instance_of(Project).to receive(:issue_reference_pattern).once.and_call_original + expect_any_instance_of(Project).to receive(:external_issue_reference_pattern).once.and_call_original not_cached = reference_filter.call("look for #{reference}", { project: project }) expect_any_instance_of(Project).not_to receive(:default_issues_tracker?) - expect_any_instance_of(Project).not_to receive(:issue_reference_pattern) + expect_any_instance_of(Project).not_to receive(:external_issue_reference_pattern) cached = reference_filter.call("look for #{reference}", { project: project }) |