diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2013-09-13 11:37:13 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-09-13 11:37:13 +0200 |
commit | c606df8fdf7ea4601415fb54135f1c53083f9456 (patch) | |
tree | 542777ba57208cd164055bf4187645640b2f6c40 /features | |
parent | 91e112ffe2a2c16b3b5e2cd4ce032cb9fa769660 (diff) | |
download | gitlab-ce-c606df8fdf7ea4601415fb54135f1c53083f9456.tar.gz |
Test.
Diffstat (limited to 'features')
-rw-r--r-- | features/project/create_project.feature | 11 | ||||
-rw-r--r-- | features/steps/project/create_project.rb | 22 |
2 files changed, 33 insertions, 0 deletions
diff --git a/features/project/create_project.feature b/features/project/create_project.feature index b7cdfdb818e..395a3218b2b 100644 --- a/features/project/create_project.feature +++ b/features/project/create_project.feature @@ -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
\ No newline at end of file diff --git a/features/steps/project/create_project.rb b/features/steps/project/create_project.rb index 0d9727732c7..b59345e7078 100644 --- a/features/steps/project/create_project.rb +++ b/features/steps/project/create_project.rb @@ -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 |