debian-mirror-gitlab/features/steps/project/create.rb

24 lines
666 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class Spinach::Features::ProjectCreate < Spinach::FeatureSteps
2014-09-02 18:07:02 +05:30
include SharedAuthentication
include SharedPaths
2015-12-23 02:04:40 +05:30
include SharedUser
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
step 'fill project form with valid data' do
fill_in 'project_path', with: 'Empty'
2017-09-10 17:25:29 +05:30
page.within '#content-body' do
click_button "Create project"
end
2014-09-02 18:07:02 +05:30
end
2015-04-26 12:48:37 +05:30
step 'I should see project page' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "Empty"
2017-09-10 17:25:29 +05:30
expect(current_path).to eq project_path(Project.last)
2014-09-02 18:07:02 +05:30
end
2016-06-02 11:05:42 +05:30
step 'I should see empty project instructions' do
2015-09-11 14:41:01 +05:30
expect(page).to have_content "git init"
expect(page).to have_content "git remote"
expect(page).to have_content Project.last.url_to_repo
2014-09-02 18:07:02 +05:30
end
end