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
path: root/spec
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-02 18:22:51 +0400
committerMarin Jankovski <marin@gitlab.com>2014-06-03 13:37:23 +0400
commit209726917b1231e02bf77f1f5ee71cbc95f94853 (patch)
tree07856dbf6eaf235c50f1844035b0fb78923826f3 /spec
parentecfd33c12f0d008d4b09b9dab486e3d0100239c3 (diff)
Fix the system_hook test.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/system_hook_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/system_hook_spec.rb b/spec/models/system_hook_spec.rb
index 73144397301..47d6d861d70 100644
--- a/spec/models/system_hook_spec.rb
+++ b/spec/models/system_hook_spec.rb
@@ -59,7 +59,7 @@ describe SystemHook do
user = create(:user)
project = create(:project)
project.team << [user, :master]
- project.users_projects.clear
+ project.users_projects.destroy_all
WebMock.should have_requested(:post, @system_hook.url).with(body: /user_remove_from_team/).once
end
end