Add feature steps for a generic, non-"Shop" project
This group is better for features that only deal with one project.
This commit is contained in:
parent
6b90f36f5b
commit
4252ea90c0
3 changed files with 55 additions and 2 deletions
|
@ -1,6 +1,13 @@
|
|||
module SharedProject
|
||||
include Spinach::DSL
|
||||
|
||||
# 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"
|
||||
And 'I own project "Shop"' do
|
||||
@project = Factory :project, :name => "Shop"
|
||||
@project.add_access(@user, :admin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue