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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
74253f01
Commit
74253f01
authored
May 28, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'starred_projects.feature' spinach test with an rspec analog
parent
e5226177
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
changelogs/unreleased/23036-replace-all-spinach-tests-with-rspec-feature-tests.yml
...36-replace-all-spinach-tests-with-rspec-feature-tests.yml
+4
-0
features/dashboard/starred_projects.feature
features/dashboard/starred_projects.feature
+0
-12
spec/features/dashboard/projects_spec.rb
spec/features/dashboard/projects_spec.rb
+13
-1
No files found.
changelogs/unreleased/23036-replace-all-spinach-tests-with-rspec-feature-tests.yml
0 → 100644
View file @
74253f01
---
title
:
Replace 'starred_projects.feature' spinach test with an rspec analog
merge_request
:
11752
author
:
blackst0ne
features/dashboard/starred_projects.feature
deleted
100644 → 0
View file @
e5226177
@dashboard
Feature
:
Dashboard Starred Projects
Background
:
Given
I sign in as a user
And
public project
"Community"
And
I starred project
"Community"
And
I own project
"Shop"
And
I visit dashboard starred projects page
Scenario
:
I
should see projects list
Then
I should see project
"Community"
And
I should not see project
"Shop"
spec/features/dashboard/projects_spec.rb
View file @
74253f01
...
...
@@ -3,10 +3,11 @@ require 'spec_helper'
RSpec
.
describe
'Dashboard Projects'
,
feature:
true
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
name:
"awesome stuff"
)
}
let
(
:project2
)
{
create
(
:project
,
:public
,
name:
'Community project'
)
}
before
do
project
.
team
<<
[
user
,
:developer
]
login_as
user
login_as
(
user
)
end
it
'shows the project the user in a member of in the list'
do
...
...
@@ -14,6 +15,17 @@ RSpec.describe 'Dashboard Projects', feature: true do
expect
(
page
).
to
have_content
(
'awesome stuff'
)
end
context
'when on Starred projects tab'
do
it
'shows only starred projects'
do
user
.
toggle_star
(
project2
)
visit
(
starred_dashboard_projects_path
)
expect
(
page
).
not_to
have_content
(
project
.
name
)
expect
(
page
).
to
have_content
(
project2
.
name
)
end
end
describe
"with a pipeline"
,
redis:
true
do
let!
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
.
sha
)
}
...
...
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