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
65b1ea3b
Commit
65b1ea3b
authored
Jan 04, 2017
by
Semyon Pupkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move dashboard group spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
parent
115aac77
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
38 deletions
+20
-38
features/dashboard/group.feature
features/dashboard/group.feature
+0
-13
features/steps/dashboard/group.rb
features/steps/dashboard/group.rb
+0
-25
spec/features/dashboard/group_spec.rb
spec/features/dashboard/group_spec.rb
+20
-0
No files found.
features/dashboard/group.feature
deleted
100644 → 0
View file @
115aac77
@dashboard
Feature
:
Dashboard Group
Background
:
Given
I sign in as
"John Doe"
And
"John Doe"
is owner of group
"Owned"
And
"John Doe"
is guest of group
"Guest"
Scenario
:
Create a group from dasboard
And
I visit dashboard groups page
And
I click new group link
And
submit form with new group
"Samurai"
info
Then
I should be redirected to group
"Samurai"
page
And
I should see newly created group
"Samurai"
features/steps/dashboard/group.rb
deleted
100644 → 0
View file @
115aac77
class
Spinach::Features::DashboardGroup
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedGroup
include
SharedPaths
include
SharedUser
step
'I click new group link'
do
click_link
"New Group"
end
step
'submit form with new group "Samurai" info'
do
fill_in
'group_path'
,
with:
'Samurai'
fill_in
'group_description'
,
with:
'Tokugawa Shogunate'
click_button
"Create group"
end
step
'I should be redirected to group "Samurai" page'
do
expect
(
current_path
).
to
eq
group_path
(
Group
.
find_by
(
name:
'Samurai'
))
end
step
'I should see newly created group "Samurai"'
do
expect
(
page
).
to
have_content
"Samurai"
expect
(
page
).
to
have_content
"Tokugawa Shogunate"
end
end
spec/features/dashboard/group_spec.rb
0 → 100644
View file @
65b1ea3b
require
'spec_helper'
RSpec
.
describe
'Dashboard Group'
,
feature:
true
do
before
do
login_as
(
:user
)
end
it
'creates new grpup'
do
visit
dashboard_groups_path
click_link
'New Group'
fill_in
'group_path'
,
with:
'Samurai'
fill_in
'group_description'
,
with:
'Tokugawa Shogunate'
click_button
'Create group'
expect
(
current_path
).
to
eq
group_path
(
Group
.
find_by
(
name:
'Samurai'
))
expect
(
page
).
to
have_content
(
'Samurai'
)
expect
(
page
).
to
have_content
(
'Tokugawa Shogunate'
)
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