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
e91afc0d
Commit
e91afc0d
authored
Dec 01, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-include-emailhelpers' into 'master'
Only include EmailHelpers in mailer specs and specs using them See merge request !7836
parents
7c66ea94
819f459b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
1 deletion
+16
-1
pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+2
-0
pipeline_email_service_spec.rb
spec/models/project_services/pipeline_email_service_spec.rb
+2
-0
issues_spec.rb
spec/requests/api/issues_spec.rb
+1
-0
update_service_spec.rb
spec/services/issues/update_service_spec.rb
+2
-0
update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+2
-0
notification_service_spec.rb
spec/services/notification_service_spec.rb
+2
-0
spec_helper.rb
spec/spec_helper.rb
+1
-1
build_email_worker_spec.rb
spec/workers/build_email_worker_spec.rb
+1
-0
emails_on_push_worker_spec.rb
spec/workers/emails_on_push_worker_spec.rb
+1
-0
pipeline_notification_worker_spec.rb
spec/workers/pipeline_notification_worker_spec.rb
+2
-0
No files found.
spec/models/ci/pipeline_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
Ci
::
Pipeline
,
models:
true
do
include
EmailHelpers
let
(
:project
)
{
FactoryGirl
.
create
:empty_project
}
let
(
:pipeline
)
{
FactoryGirl
.
create
:ci_empty_pipeline
,
status:
'created'
,
project:
project
}
...
...
spec/models/project_services/pipeline_email_service_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
PipelinesEmailService
do
include
EmailHelpers
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
(
'master'
).
sha
)
end
...
...
spec/requests/api/issues_spec.rb
View file @
e91afc0d
...
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
API
::
API
,
api:
true
do
include
ApiHelpers
include
EmailHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
spec/services/issues/update_service_spec.rb
View file @
e91afc0d
...
...
@@ -2,6 +2,8 @@
require
'spec_helper'
describe
Issues
::
UpdateService
,
services:
true
do
include
EmailHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
MergeRequests
::
UpdateService
,
services:
true
do
include
EmailHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
spec/services/notification_service_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
NotificationService
,
services:
true
do
include
EmailHelpers
let
(
:notification
)
{
NotificationService
.
new
}
around
(
:each
)
do
|
example
|
...
...
spec/spec_helper.rb
View file @
e91afc0d
...
...
@@ -32,7 +32,7 @@ RSpec.configure do |config|
config
.
include
LoginHelpers
,
type: :feature
config
.
include
SearchHelpers
,
type: :feature
config
.
include
StubConfiguration
config
.
include
EmailHelpers
config
.
include
EmailHelpers
,
type: :mailer
config
.
include
TestEnv
config
.
include
ActiveJob
::
TestHelper
config
.
include
ActiveSupport
::
Testing
::
TimeHelpers
...
...
spec/workers/build_email_worker_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
BuildEmailWorker
do
include
EmailHelpers
include
RepoHelpers
let
(
:build
)
{
create
(
:ci_build
)
}
...
...
spec/workers/emails_on_push_worker_spec.rb
View file @
e91afc0d
...
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
EmailsOnPushWorker
do
include
RepoHelpers
include
EmailHelpers
include
EmailSpec
::
Matchers
let
(
:project
)
{
create
(
:project
)
}
...
...
spec/workers/pipeline_notification_worker_spec.rb
View file @
e91afc0d
require
'spec_helper'
describe
PipelineNotificationWorker
do
include
EmailHelpers
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
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