2012-09-10 15:35:03 +00:00
|
|
|
module SharedProject
|
|
|
|
include Spinach::DSL
|
|
|
|
|
2012-09-26 02:34:29 +00:00
|
|
|
# Create a project without caring about what it's called
|
|
|
|
And "I own a project" do
|
|
|
|
@project = create(:project)
|
|
|
|
@project.add_access(@user, :admin)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Create a specific project called "Shop"
|
2012-09-10 15:35:03 +00:00
|
|
|
And 'I own project "Shop"' do
|
2012-11-06 03:31:55 +00:00
|
|
|
@project = create(:project, :name => "Shop")
|
2012-09-10 15:35:03 +00:00
|
|
|
@project.add_access(@user, :admin)
|
|
|
|
end
|
2012-09-27 20:52:08 +00:00
|
|
|
|
|
|
|
def current_project
|
|
|
|
@project ||= Project.first
|
|
|
|
end
|
2012-09-10 15:35:03 +00:00
|
|
|
end
|