2012-09-10 17:35:03 +02:00
|
|
|
module SharedProject
|
|
|
|
include Spinach::DSL
|
|
|
|
|
2012-09-26 04:34:29 +02: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 17:35:03 +02:00
|
|
|
And 'I own project "Shop"' do
|
|
|
|
@project = Factory :project, :name => "Shop"
|
|
|
|
@project.add_access(@user, :admin)
|
|
|
|
end
|
|
|
|
end
|