Commit 20972691 authored by Marin Jankovski's avatar Marin Jankovski

Fix the system_hook test.

parent ecfd33c1
...@@ -59,7 +59,7 @@ describe SystemHook do ...@@ -59,7 +59,7 @@ describe SystemHook do
user = create(:user) user = create(:user)
project = create(:project) project = create(:project)
project.team << [user, :master] 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 WebMock.should have_requested(:post, @system_hook.url).with(body: /user_remove_from_team/).once
end end
end end
......
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