Commit 766d3b9d authored by Robert Speicher's avatar Robert Speicher

Merge branch 'fix/rubocop-offenses-in-repo-spec' into 'master'

Fix rubocop offenses introduced in !16623

See merge request gitlab-org/gitlab-ce!16722
parents 10d8026f 2290b438
...@@ -1998,8 +1998,13 @@ describe Gitlab::Git::Repository, seed_helper: true do ...@@ -1998,8 +1998,13 @@ describe Gitlab::Git::Repository, seed_helper: true do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:imported_repo) { project.repository.raw } let(:imported_repo) { project.repository.raw }
before { expect(repository.bundle_to_disk(bundle_path)).to be true } before do
after { FileUtils.rm_rf(bundle_path) } 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 it 'creates a repo from a bundle file' do
expect(imported_repo).not_to exist expect(imported_repo).not_to exist
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment