diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-04 17:05:16 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-04 17:05:16 -0400 |
commit | f18ec70743375024aa7ec7bb86c437ca9198e729 (patch) | |
tree | 4fe1fb68fbb9ced4ff5f5514f755916554d2d384 /features/steps/project/create.rb | |
parent | fad7b392dc633fb689e657af8b7fad346ede416e (diff) | |
download | gitlab-ce-f18ec70743375024aa7ec7bb86c437ca9198e729.tar.gz |
Backport changes from gitlab-org/gitlab-ee!372rs-backport-ee-372
Mostly replaces several Spinach tests with RSpec Feature tests.
Diffstat (limited to 'features/steps/project/create.rb')
-rw-r--r-- | features/steps/project/create.rb | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/features/steps/project/create.rb b/features/steps/project/create.rb index 422b151eaa2..5f5f806df36 100644 --- a/features/steps/project/create.rb +++ b/features/steps/project/create.rb @@ -13,33 +13,9 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps expect(current_path).to eq namespace_project_path(Project.last.namespace, Project.last) end - step 'I should see empty project instuctions' do + step 'I should see empty project instructions' 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 - - 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 - end - - step 'I click on HTTP' do - find('#clone-dropdown').click - find('.http-selector').click - 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}" - end - - step 'If I click on SSH' do - find('#clone-dropdown').click - find('.ssh-selector').click - end - - step 'Remote url should update to ssh link' do - expect(page).to have_content "git remote add origin #{Project.last.url_to_repo}" - end end |