A bit of test refactoring

This commit is contained in:
randx 2012-09-15 01:00:59 +03:00
parent 0d66cf2a38
commit a82977c648
6 changed files with 49 additions and 75 deletions

View file

@ -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