diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-03-08 16:40:45 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-08 16:40:45 -0500 |
commit | b900304c3867454ac11e12d303a318ae7494f93e (patch) | |
tree | 0f0eb644c3d164309dc7a64872085da3c7c5a2bf /spec/controllers/projects/forks_controller_spec.rb | |
parent | 7000e76a01f20fcb739587cb446610c4076bf910 (diff) | |
download | gitlab-ce-b900304c3867454ac11e12d303a318ae7494f93e.tar.gz |
Make better use of the `visibility_level` factory traitsrs-traits-are-good
Diffstat (limited to 'spec/controllers/projects/forks_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/forks_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/projects/forks_controller_spec.rb b/spec/controllers/projects/forks_controller_spec.rb index 883bbaedd4e..70ed8f3a62e 100644 --- a/spec/controllers/projects/forks_controller_spec.rb +++ b/spec/controllers/projects/forks_controller_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe Projects::ForksController do let(:user) { create(:user) } - let(:project) { create(:project, visibility_level: Project::PUBLIC) } + let(:project) { create(:project, :public) } let(:forked_project) { Projects::ForkService.new(project, user).execute } let(:group) { create(:group, owner: forked_project.creator) } |