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
iv
gitlab-ce
Commits
16b61590
Commit
16b61590
authored
Jan 09, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spinach: admin logs, admin users
parent
66ecfa77
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
0 deletions
+37
-0
features/admin/logs.feature
features/admin/logs.feature
+5
-0
features/admin/users.feature
features/admin/users.feature
+6
-0
features/steps/admin/admin_logs.rb
features/steps/admin/admin_logs.rb
+11
-0
features/steps/admin/admin_users.rb
features/steps/admin/admin_users.rb
+11
-0
features/steps/shared/admin.rb
features/steps/shared/admin.rb
+4
-0
No files found.
features/admin/logs.feature
View file @
16b61590
Feature
:
Admin Logs
Background
:
Given
I sign in as an admin
Scenario
:
On Admin Logs
Given
I visit admin logs page
Then
I should see tabs with available logs
features/admin/users.feature
View file @
16b61590
Feature
:
Admin Users
Background
:
Given
I sign in as an admin
And
system has users
Scenario
:
On Admin Users
Given
I visit admin users page
Then
I should see all users
features/steps/admin/admin_logs.rb
0 → 100644
View file @
16b61590
class
AdminLogs
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedAdmin
Then
'I should see tabs with available logs'
do
page
.
should
have_content
'production.log'
page
.
should
have_content
'githost.log'
page
.
should
have_content
'application.log'
end
end
features/steps/admin/admin_users.rb
0 → 100644
View file @
16b61590
class
AdminUsers
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedAdmin
Then
'I should see all users'
do
User
.
all
.
each
do
|
user
|
page
.
should
have_content
user
.
name
end
end
end
features/steps/shared/admin.rb
View file @
16b61590
...
...
@@ -4,5 +4,9 @@ module SharedAdmin
And
'there are projects in system'
do
2
.
times
{
create
(
:project
)
}
end
And
'system has users'
do
2
.
times
{
create
(
:user
)
}
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