summaryrefslogtreecommitdiff
path: root/spec/services/projects
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-07-23 23:52:21 -0700
committerStan Hu <stanhu@gmail.com>2015-07-29 10:49:13 -0700
commit3e9b612306e026e7a91bd1bc5e52cc6f0c9c48de (patch)
treedcf30e087f8f82ff3368d5ca3322ffc7b7bb625b /spec/services/projects
parent82f0d3e655c48fc67adea88af681d0b5d81810de (diff)
downloadgitlab-ce-3e9b612306e026e7a91bd1bc5e52cc6f0c9c48de.tar.gz
Check that project was actually created rather than just validated in import:repos task
Add gitlab-shell to error message to give user a clue that something may be wrong there. Ran into this in #2082. User was told that repositories were created when they were not due to hooks symlink being wrong.
Diffstat (limited to 'spec/services/projects')
-rw-r--r--spec/services/projects/fork_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/fork_service_spec.rb b/spec/services/projects/fork_service_spec.rb
index 439a492cea9..c04e842c67e 100644
--- a/spec/services/projects/fork_service_spec.rb
+++ b/spec/services/projects/fork_service_spec.rb
@@ -29,7 +29,7 @@ describe Projects::ForkService do
it "fails due to transaction failure" do
@to_project = fork_project(@from_project, @to_user, false)
expect(@to_project.errors).not_to be_empty
- expect(@to_project.errors[:base]).to include("Failed to fork repository")
+ expect(@to_project.errors[:base]).to include("Failed to fork repository via gitlab-shell")
end
end