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
a598bd91
Commit
a598bd91
authored
Sep 15, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor ci_admin_event and fix features/ci/events_spec.rb
parent
6d0980b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
spec/factories/ci/events.rb
spec/factories/ci/events.rb
+1
-1
spec/features/ci/admin/events_spec.rb
spec/features/ci/admin/events_spec.rb
+1
-1
spec/features/ci/events_spec.rb
spec/features/ci/events_spec.rb
+2
-2
No files found.
spec/factories/ci/events.rb
View file @
a598bd91
...
...
@@ -17,7 +17,7 @@ FactoryGirl.define do
"updated project settings
#{
n
}
"
end
factory
:admin_event
do
factory
:
ci_
admin_event
do
is_admin
true
end
end
...
...
spec/features/ci/admin/events_spec.rb
View file @
a598bd91
require
'spec_helper'
describe
"Admin Events"
do
let
(
:event
)
{
FactoryGirl
.
create
:admin_event
}
let
(
:event
)
{
FactoryGirl
.
create
:
ci_
admin_event
}
before
do
skip_ci_admin_auth
...
...
spec/features/ci/events_spec.rb
View file @
a598bd91
...
...
@@ -2,13 +2,13 @@ require 'spec_helper'
describe
"Events"
do
let
(
:project
)
{
FactoryGirl
.
create
:ci_project
}
let
(
:event
)
{
FactoryGirl
.
create
:admin_event
,
project:
project
}
let
(
:event
)
{
FactoryGirl
.
create
:
ci_
admin_event
,
project:
project
}
before
do
login_as
:user
end
describe
"GET /project/:id/events"
do
describe
"GET /
ci/
project/:id/events"
do
before
do
event
visit
ci_project_events_path
(
project
)
...
...
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