diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-26 18:36:09 +0300 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2017-06-26 18:36:09 +0300 |
commit | 0eb3d18c569cbae0f4b58284857c7a21972c4153 (patch) | |
tree | 50d70b3ce1fb007457cebff4dfcad44fafdbb7f5 /spec/lib | |
parent | d4384dc154cb1e44c7b0a5cd802d48629f585fdb (diff) |
Store merge request ref_fetched status in the database
Closes #34052
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/import_export/fork_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/fork_spec.rb b/spec/lib/gitlab/import_export/fork_spec.rb index 42f3fc59f04..70796781532 100644 --- a/spec/lib/gitlab/import_export/fork_spec.rb +++ b/spec/lib/gitlab/import_export/fork_spec.rb @@ -44,6 +44,8 @@ describe 'forked project import', services: true do end it 'can access the MR' do - expect(project.merge_requests.first.ensure_ref_fetched.first).to include('refs/merge-requests/1/head') + project.merge_requests.first.ensure_ref_fetched + + expect(project.repository.ref_exists?('refs/merge-requests/1/head')).to be_truthy end end |