Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-26 01:10:32 +0300
committerRobert Speicher <rspeicher@gmail.com>2017-01-26 01:10:32 +0300
commit2fe13fbc4b1012778e5cd36f676b2ee51c5caaa1 (patch)
tree9eff1aaf58e681507dfdbe5a2bdb25ce7516fc58 /spec/helpers/preferences_helper_spec.rb
parentd55839120e92be48b30d248ce9d72a19be038c79 (diff)
Use `:empty_project` where possible in helper specs
Diffstat (limited to 'spec/helpers/preferences_helper_spec.rb')
-rw-r--r--spec/helpers/preferences_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/preferences_helper_spec.rb b/spec/helpers/preferences_helper_spec.rb
index 77841e85223..1f02e06e312 100644
--- a/spec/helpers/preferences_helper_spec.rb
+++ b/spec/helpers/preferences_helper_spec.rb
@@ -110,7 +110,7 @@ describe PreferencesHelper do
end
context 'when repository is not empty' do
- let(:project) { create(:project, :public) }
+ let(:project) { create(:project, :public, :repository) }
it 'returns readme if user has repository access' do
allow(helper).to receive(:can?).with(nil, :download_code, project).and_return(true)