A bit of test refactoring
This commit is contained in:
parent
0d66cf2a38
commit
a82977c648
6 changed files with 49 additions and 75 deletions
|
@ -15,10 +15,9 @@ class UsersProjectObserver < ActiveRecord::Observer
|
|||
|
||||
def after_destroy(users_project)
|
||||
Event.create(
|
||||
project_id: users_project.project.id,
|
||||
action: Event::Left,
|
||||
project_id: users_project.project.id,
|
||||
action: Event::Left,
|
||||
author_id: users_project.user.id
|
||||
)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue