diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2018-01-25 20:44:16 +0100 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2018-01-25 20:44:16 +0100 |
commit | 2290b438f429071eed96e7db63c0356a2e666778 (patch) | |
tree | 998962ad0f8620014d68655d89a9e046da345d60 /spec | |
parent | af95ba2fb481be62722438e5d93b074b1d3f89cb (diff) | |
download | gitlab-ce-2290b438f429071eed96e7db63c0356a2e666778.tar.gz |
Fix rubocop offenses introduced in !16623
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/git/repository_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb index e4562e4d43e..3db04d99855 100644 --- a/spec/lib/gitlab/git/repository_spec.rb +++ b/spec/lib/gitlab/git/repository_spec.rb @@ -1998,8 +1998,13 @@ describe Gitlab::Git::Repository, seed_helper: true do let(:project) { create(:project) } let(:imported_repo) { project.repository.raw } - before { expect(repository.bundle_to_disk(bundle_path)).to be true } - after { FileUtils.rm_rf(bundle_path) } + before do + expect(repository.bundle_to_disk(bundle_path)).to be true + end + + after do + FileUtils.rm_rf(bundle_path) + end it 'creates a repo from a bundle file' do expect(imported_repo).not_to exist |