From 7ba4482fcf6faae162ceb920044f4ec07ef048af Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Wed, 23 Dec 2015 19:57:30 -0500 Subject: fixes failing test by updating project clone instructions --- features/steps/project/create.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'features/steps/project/create.rb') diff --git a/features/steps/project/create.rb b/features/steps/project/create.rb index f90218f3791..0c247c83133 100644 --- a/features/steps/project/create.rb +++ b/features/steps/project/create.rb @@ -26,18 +26,20 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps end step 'I click on HTTP' do - click_button 'HTTP' + 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}" + expect(page).to have_content Project.last.http_url_to_repo end step 'If I click on SSH' do - click_button 'SSH' + 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}" + expect(page).to have_content Project.last.ssh_url_to_repo end end -- cgit v1.2.1 From 6592bfbb9ed37c348f257106c1da35692ef6a111 Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Wed, 23 Dec 2015 20:36:29 -0500 Subject: Moves star code to a class --- features/steps/project/create.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'features/steps/project/create.rb') diff --git a/features/steps/project/create.rb b/features/steps/project/create.rb index 0c247c83133..8a0e8fc2b6c 100644 --- a/features/steps/project/create.rb +++ b/features/steps/project/create.rb @@ -31,7 +31,7 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps end step 'Remote url should update to http link' do - expect(page).to have_content Project.last.http_url_to_repo + expect(page).to have_content "git remote add origin #{Project.last.http_url_to_repo}" end step 'If I click on SSH' do @@ -40,6 +40,6 @@ class Spinach::Features::ProjectCreate < Spinach::FeatureSteps end step 'Remote url should update to ssh link' do - expect(page).to have_content Project.last.ssh_url_to_repo + expect(page).to have_content "git remote add origin #{Project.last.url_to_repo}" end end -- cgit v1.2.1