mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Test.
This commit is contained in:
@@ -9,3 +9,14 @@ Feature: Create Project
|
||||
And fill project form with valid data
|
||||
Then I should see project page
|
||||
And I should see empty project instuctions
|
||||
|
||||
@javascript
|
||||
Scenario: Empty project instructions
|
||||
Given I sign in as a user
|
||||
When I visit new project page
|
||||
And fill project form with valid data
|
||||
Then I see empty project instuctions
|
||||
And I click on HTTP
|
||||
Then Remote url should update to http link
|
||||
And If I click on SSH
|
||||
Then Remote url should update to ssh link
|
||||
@@ -17,4 +17,26 @@ class CreateProject < Spinach::FeatureSteps
|
||||
page.should have_content "git remote"
|
||||
page.should have_content Project.last.url_to_repo
|
||||
end
|
||||
|
||||
Then 'I see empty project instuctions' do
|
||||
page.should have_content "git init"
|
||||
page.should have_content "git remote"
|
||||
page.should have_content Project.last.url_to_repo
|
||||
end
|
||||
|
||||
And 'I click on HTTP' do
|
||||
click_button 'HTTP'
|
||||
end
|
||||
|
||||
Then 'Remote url should update to http link' do
|
||||
page.should have_content "git remote add origin #{Project.last.http_url_to_repo}"
|
||||
end
|
||||
|
||||
And 'If I click on SSH' do
|
||||
click_button 'SSH'
|
||||
end
|
||||
|
||||
Then 'Remote url should update to ssh link' do
|
||||
page.should have_content "git remote add origin #{Project.last.url_to_repo}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user