Commit b007cadf5534e4202a955825770019787a37f7d6

Authored by Dmitriy Zaporozhets
1 parent 0d7986a8

Fix project creation test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
features/project/create.feature
@@ -3,6 +3,7 @@ Feature: Create Project @@ -3,6 +3,7 @@ Feature: Create Project
3 A user with ability to create a project 3 A user with ability to create a project
4 Should be able to create a new one 4 Should be able to create a new one
5 5
  6 + @javascript
6 Scenario: User create a project 7 Scenario: User create a project
7 Given I sign in as a user 8 Given I sign in as a user
8 When I visit new project page 9 When I visit new project page
@@ -19,4 +20,4 @@ Feature: Create Project @@ -19,4 +20,4 @@ Feature: Create Project
19 And I click on HTTP 20 And I click on HTTP
20 Then Remote url should update to http link 21 Then Remote url should update to http link
21 And If I click on SSH 22 And If I click on SSH
22 - Then Remote url should update to ssh link  
23 \ No newline at end of file 23 \ No newline at end of file
  24 + Then Remote url should update to ssh link
features/steps/project/create.rb
@@ -8,8 +8,8 @@ class CreateProject &lt; Spinach::FeatureSteps @@ -8,8 +8,8 @@ class CreateProject &lt; Spinach::FeatureSteps
8 end 8 end
9 9
10 Then 'I should see project page' do 10 Then 'I should see project page' do
11 - current_path.should == project_path(Project.last)  
12 page.should have_content "Empty" 11 page.should have_content "Empty"
  12 + current_path.should == project_path(Project.last)
13 end 13 end
14 14
15 And 'I should see empty project instuctions' do 15 And 'I should see empty project instuctions' do
lib/tasks/test.rake
@@ -4,4 +4,3 @@ desc &quot;GITLAB | Run all tests&quot; @@ -4,4 +4,3 @@ desc &quot;GITLAB | Run all tests&quot;
4 task :test do 4 task :test do
5 Rake::Task["gitlab:test"].invoke 5 Rake::Task["gitlab:test"].invoke
6 end 6 end
7 -