Move ProjectHooks from spec/requests to spinach

This commit is contained in:
randx 2012-09-27 23:52:08 +03:00
parent 9cabe04368
commit db69836319
5 changed files with 65 additions and 43 deletions

View file

@ -12,4 +12,8 @@ module SharedProject
@project = Factory :project, :name => "Shop"
@project.add_access(@user, :admin)
end
def current_project
@project ||= Project.first
end
end