summaryrefslogtreecommitdiff
path: root/features/steps/project/create.rb
diff options
context:
space:
mode:
authorCiro Santillli <ciro.santilli@gmail.com>2014-02-23 10:04:56 +0100
committerCiro Santillli <ciro.santilli@gmail.com>2014-02-23 10:34:39 +0100
commit170340e6b15f91e79cf683c892ec887c3115b317 (patch)
tree19cf1f82b08201295b3e66170a967e813c522189 /features/steps/project/create.rb
parente868de687da060a109bd67fd492ed110eb134d47 (diff)
downloadgitlab-ce-170340e6b15f91e79cf683c892ec887c3115b317.tar.gz
Remove dir prefix and suffix from tests inside dir.
Diffstat (limited to 'features/steps/project/create.rb')
-rw-r--r--features/steps/project/create.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/features/steps/project/create.rb b/features/steps/project/create.rb
new file mode 100644
index 00000000000..b59345e7078
--- /dev/null
+++ b/features/steps/project/create.rb
@@ -0,0 +1,42 @@
+class CreateProject < Spinach::FeatureSteps
+ include SharedAuthentication
+ include SharedPaths
+
+ And 'fill project form with valid data' do
+ fill_in 'project_name', with: 'Empty'
+ click_button "Create project"
+ end
+
+ Then 'I should see project page' do
+ current_path.should == project_path(Project.last)
+ page.should have_content "Empty"
+ end
+
+ And 'I should 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
+
+ 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