Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
665fea37
Commit
665fea37
authored
Jun 21, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'create.feature' spinach test with an rspec analog
parent
4b0b2f15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
14 deletions
+31
-14
changelogs/unreleased/replase_spinach_spec_create-feature.yml
...gelogs/unreleased/replase_spinach_spec_create-feature.yml
+4
-0
features/project/create.feature
features/project/create.feature
+0
-14
spec/features/projects/user_creates_project_spec.rb
spec/features/projects/user_creates_project_spec.rb
+27
-0
No files found.
changelogs/unreleased/replase_spinach_spec_create-feature.yml
0 → 100644
View file @
665fea37
---
title
:
Replace 'create.feature' spinach test with an rspec analog
merge_request
:
12343
author
:
@
blackst0ne
features/project/create.feature
deleted
100644 → 0
View file @
4b0b2f15
@project-create
Feature
:
Project Create
In order to get access to project sections
A user with ability to create a project
Should be able to create a new one
@javascript
Scenario
:
User create a project
Given
I sign in as a user
And
I have an ssh key
When
I visit new project page
And
fill project form with valid data
Then
I should see project page
And
I should see empty project instructions
spec/features/projects/user_creates_project_spec.rb
0 → 100644
View file @
665fea37
require
'spec_helper'
feature
'User creates a project'
,
js:
true
do
let
(
:user
)
{
create
(
:user
)
}
before
do
sign_in
(
user
)
create
(
:personal_key
,
user:
user
)
visit
(
new_project_path
)
end
it
'creates a new project'
do
fill_in
(
:project_path
,
with:
'Empty'
)
page
.
within
(
'#content-body'
)
do
click_button
(
'Create project'
)
end
project
=
Project
.
last
expect
(
current_path
).
to
eq
(
namespace_project_path
(
project
.
namespace
,
project
))
expect
(
page
).
to
have_content
(
'Empty'
)
expect
(
page
).
to
have_content
(
'git init'
)
expect
(
page
).
to
have_content
(
'git remote'
)
expect
(
page
).
to
have_content
(
project
.
url_to_repo
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment