gitlab-org--gitlab-foss/features/steps/project/create.rb

43 lines
1.2 KiB
Ruby
Raw Normal View History

class Spinach::Features::ProjectCreate < Spinach::FeatureSteps
2012-09-10 11:35:03 -04:00
include SharedAuthentication
include SharedPaths
step 'fill project form with valid data' do
fill_in 'project_path', with: 'Empty'
click_button "Create project"
end
step 'I should see project page' do
expect(page).to have_content "Empty"
expect(current_path).to eq namespace_project_path(Project.last.namespace, Project.last)
end
step 'I should see empty project instuctions' do
expect(page).to have_content "git init"
expect(page).to have_content "git remote"
expect(page).to have_content Project.last.url_to_repo
end
2013-09-13 05:37:13 -04:00
step 'I see empty project instuctions' do
expect(page).to have_content "git init"
expect(page).to have_content "git remote"
expect(page).to have_content Project.last.url_to_repo
2013-09-13 05:37:13 -04:00
end
step 'I click on HTTP' do
2013-09-13 05:37:13 -04:00
click_button 'HTTP'
end
step 'Remote url should update to http link' do
expect(page).to have_content "git remote add origin #{Project.last.http_url_to_repo}"
2013-09-13 05:37:13 -04:00
end
step 'If I click on SSH' do
2013-09-13 05:37:13 -04:00
click_button 'SSH'
end
step 'Remote url should update to ssh link' do
expect(page).to have_content "git remote add origin #{Project.last.url_to_repo}"
2013-09-13 05:37:13 -04:00
end
end