BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
15a72a3b
Commit
15a72a3b
authored
Nov 28, 2012
by
Alex Denisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spinach test added
parent
c873cf81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
dashboard.feature
features/dashboard/dashboard.feature
+6
-0
dashboard.rb
features/steps/dashboard/dashboard.rb
+10
-0
No files found.
features/dashboard/dashboard.feature
View file @
15a72a3b
...
...
@@ -15,6 +15,12 @@ Feature: Dashboard
And
I visit dashboard page
Then
I should see groups list
Scenario
:
I
should see correct projects count
Given
I have group with projects
And
group has a projects that does not belongs to me
When
I visit dashboard page
Then
I should see 1 project at group list
Scenario
:
I
should see last push widget
Then
I should see last push widget
And
I click
"Create Merge Request"
link
...
...
features/steps/dashboard/dashboard.rb
View file @
15a72a3b
...
...
@@ -103,4 +103,14 @@ class Dashboard < Spinach::FeatureSteps
page
.
should
have_link
group
.
name
end
end
And
'group has a projects that does not belongs to me'
do
@forbidden_project1
=
create
(
:project
,
group:
@group
)
@forbidden_project2
=
create
(
:project
,
group:
@group
)
end
Then
'I should see 1 project at group list'
do
page
.
find
(
'span.last_activity/span'
).
should
have_content
(
'1'
)
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