2012-09-10 08:35:03 -07:00
|
|
|
module SharedProject
|
|
|
|
include Spinach::DSL
|
|
|
|
|
2012-09-25 22:34:29 -04:00
|
|
|
# Create a project without caring about what it's called
|
|
|
|
And "I own a project" do
|
|
|
|
@project = create(:project)
|
2013-01-04 08:43:25 +02:00
|
|
|
@project.team << [@user, :master]
|
2012-09-25 22:34:29 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Create a specific project called "Shop"
|
2012-09-10 08:35:03 -07:00
|
|
|
And 'I own project "Shop"' do
|
2013-01-04 08:43:25 +02:00
|
|
|
@project = create(:project, name: "Shop")
|
|
|
|
@project.team << [@user, :master]
|
2012-09-10 08:35:03 -07:00
|
|
|
end
|
2012-09-27 23:52:08 +03:00
|
|
|
|
|
|
|
def current_project
|
|
|
|
@project ||= Project.first
|
|
|
|
end
|
2012-09-10 08:35:03 -07:00
|
|
|
end
|