summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-03 11:23:21 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-03 11:23:21 +0000
commit7dc8b6b2045d84ff232731ef92f2cac916732753 (patch)
tree6ab9df705d3c3383b081f31952a98ba58957bcc3 /spec/lib
parent25bb39225e073c451d76e7a7ddb9dedef8d43143 (diff)
parenta0586dbc165cc09422412149712a218938137308 (diff)
downloadgitlab-ce-7dc8b6b2045d84ff232731ef92f2cac916732753.tar.gz
Merge branch 'fwn-to-find-by-full-path' into 'master'
replace `find_with_namespace` with `find_by_full_path` See merge request !8949
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/banzai/cross_project_reference_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/banzai/cross_project_reference_spec.rb b/spec/lib/banzai/cross_project_reference_spec.rb
index 81b9a513ce3..deaabceef1c 100644
--- a/spec/lib/banzai/cross_project_reference_spec.rb
+++ b/spec/lib/banzai/cross_project_reference_spec.rb
@@ -24,7 +24,7 @@ describe Banzai::CrossProjectReference, lib: true do
it 'returns the referenced project' do
project2 = double('referenced project')
- expect(Project).to receive(:find_with_namespace).
+ expect(Project).to receive(:find_by_full_path).
with('cross/reference').and_return(project2)
expect(project_from_ref('cross/reference')).to eq project2