diff options
author | Stan Hu <stanhu@gmail.com> | 2016-07-17 20:12:32 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-07-17 20:12:32 -0700 |
commit | 565b3a183978a7952ef92d2e1e05b429f38322fa (patch) | |
tree | c1687093d614f63e06c88420998dcb7a7a8e3281 /spec/models | |
parent | 1bf57b75119deb79f5826245d4c69a0a83cc4864 (diff) | |
download | gitlab-ce-565b3a183978a7952ef92d2e1e05b429f38322fa.tar.gz |
Allow a project import URL to be blank to prevent false positives
preventing settings from being saved
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index e842c58dd82..9dc34276f18 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -142,10 +142,10 @@ describe Project, models: true do expect(project2).to be_valid end - it 'does not allow to introduce an empty URI' do + it 'allows an empty URI' do project2 = build(:project, import_url: '') - expect(project2).not_to be_valid + expect(project2).to be_valid end it 'does not produce import data on an empty URI' do |