Commit 9b234825 authored by James Lopez's avatar James Lopez

fix specs

parent 1d849129
......@@ -465,7 +465,7 @@ class Project < ActiveRecord::Base
import_url = Gitlab::UrlSanitizer.new(value)
super(import_url.sanitized_url)
create_or_update_import_data(credentials: import_url.credentials) if valid?
create_or_update_import_data(credentials: import_url.credentials) unless errors.messages[:import_url]
end
def import_url
......
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