Commit 209726917b1231e02bf77f1f5ee71cbc95f94853
1 parent
ecfd33c1
Exists in
spb-stable
and in
2 other branches
Fix the system_hook test.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/models/system_hook_spec.rb
... | ... | @@ -59,7 +59,7 @@ describe SystemHook do |
59 | 59 | user = create(:user) |
60 | 60 | project = create(:project) |
61 | 61 | project.team << [user, :master] |
62 | - project.users_projects.clear | |
62 | + project.users_projects.destroy_all | |
63 | 63 | WebMock.should have_requested(:post, @system_hook.url).with(body: /user_remove_from_team/).once |
64 | 64 | end |
65 | 65 | end | ... | ... |