Use only one before block, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142/diffs#note_14347758
This commit is contained in:
Lin Jen-Shin 2016-08-24 14:40:18 +08:00
parent eadb1dc547
commit bc3493f947

View file

@ -17,9 +17,7 @@ describe Projects::ArtifactsController do
describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do
before do before do
project.team << [user, :developer] project.team << [user, :developer]
end
before do
login_as(user) login_as(user)
end end