gitlabhq/features/steps/project.rb
2012-09-10 06:35:23 -07:00

16 lines
349 B
Ruby

class Projects < Spinach::FeatureSteps
Given 'I sign in as a user' do
login_as :user
end
And 'I own project "Shop"' do
@project = Factory :project, :name => "Shop"
@project.add_access(@user, :admin)
end
And 'I visit project "Shop" page' do
project = Project.find_by_name("Shop")
visit project_path(project)
end
end