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
Jérome Perrin
gitlab-ce
Commits
819f459b
Commit
819f459b
authored
Nov 30, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only include EmailHelpers in mailer specs and specs using them
parent
7633e4ae
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
1 deletion
+16
-1
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+2
-0
spec/models/project_services/pipeline_email_service_spec.rb
spec/models/project_services/pipeline_email_service_spec.rb
+2
-0
spec/requests/api/issues_spec.rb
spec/requests/api/issues_spec.rb
+1
-0
spec/services/issues/update_service_spec.rb
spec/services/issues/update_service_spec.rb
+2
-0
spec/services/merge_requests/update_service_spec.rb
spec/services/merge_requests/update_service_spec.rb
+2
-0
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+2
-0
spec/spec_helper.rb
spec/spec_helper.rb
+1
-1
spec/workers/build_email_worker_spec.rb
spec/workers/build_email_worker_spec.rb
+1
-0
spec/workers/emails_on_push_worker_spec.rb
spec/workers/emails_on_push_worker_spec.rb
+1
-0
spec/workers/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 @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
Ci
::
Pipeline
,
models:
true
do
describe
Ci
::
Pipeline
,
models:
true
do
include
EmailHelpers
let
(
:project
)
{
FactoryGirl
.
create
:empty_project
}
let
(
:project
)
{
FactoryGirl
.
create
:empty_project
}
let
(
:pipeline
)
{
FactoryGirl
.
create
:ci_empty_pipeline
,
status:
'created'
,
project:
project
}
let
(
:pipeline
)
{
FactoryGirl
.
create
:ci_empty_pipeline
,
status:
'created'
,
project:
project
}
...
...
spec/models/project_services/pipeline_email_service_spec.rb
View file @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
PipelinesEmailService
do
describe
PipelinesEmailService
do
include
EmailHelpers
let
(
:pipeline
)
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
(
'master'
).
sha
)
create
(
:ci_pipeline
,
project:
project
,
sha:
project
.
commit
(
'master'
).
sha
)
end
end
...
...
spec/requests/api/issues_spec.rb
View file @
819f459b
...
@@ -2,6 +2,7 @@ require 'spec_helper'
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
API
::
API
,
api:
true
do
describe
API
::
API
,
api:
true
do
include
ApiHelpers
include
ApiHelpers
include
EmailHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
spec/services/issues/update_service_spec.rb
View file @
819f459b
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
require
'spec_helper'
require
'spec_helper'
describe
Issues
::
UpdateService
,
services:
true
do
describe
Issues
::
UpdateService
,
services:
true
do
include
EmailHelpers
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
let
(
:user3
)
{
create
(
:user
)
}
...
...
spec/services/merge_requests/update_service_spec.rb
View file @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
MergeRequests
::
UpdateService
,
services:
true
do
describe
MergeRequests
::
UpdateService
,
services:
true
do
include
EmailHelpers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
...
...
spec/services/notification_service_spec.rb
View file @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
NotificationService
,
services:
true
do
describe
NotificationService
,
services:
true
do
include
EmailHelpers
let
(
:notification
)
{
NotificationService
.
new
}
let
(
:notification
)
{
NotificationService
.
new
}
around
(
:each
)
do
|
example
|
around
(
:each
)
do
|
example
|
...
...
spec/spec_helper.rb
View file @
819f459b
...
@@ -32,7 +32,7 @@ RSpec.configure do |config|
...
@@ -32,7 +32,7 @@ RSpec.configure do |config|
config
.
include
LoginHelpers
,
type: :feature
config
.
include
LoginHelpers
,
type: :feature
config
.
include
SearchHelpers
,
type: :feature
config
.
include
SearchHelpers
,
type: :feature
config
.
include
StubConfiguration
config
.
include
StubConfiguration
config
.
include
EmailHelpers
config
.
include
EmailHelpers
,
type: :mailer
config
.
include
TestEnv
config
.
include
TestEnv
config
.
include
ActiveJob
::
TestHelper
config
.
include
ActiveJob
::
TestHelper
config
.
include
ActiveSupport
::
Testing
::
TimeHelpers
config
.
include
ActiveSupport
::
Testing
::
TimeHelpers
...
...
spec/workers/build_email_worker_spec.rb
View file @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
BuildEmailWorker
do
describe
BuildEmailWorker
do
include
EmailHelpers
include
RepoHelpers
include
RepoHelpers
let
(
:build
)
{
create
(
:ci_build
)
}
let
(
:build
)
{
create
(
:ci_build
)
}
...
...
spec/workers/emails_on_push_worker_spec.rb
View file @
819f459b
...
@@ -2,6 +2,7 @@ require 'spec_helper'
...
@@ -2,6 +2,7 @@ require 'spec_helper'
describe
EmailsOnPushWorker
do
describe
EmailsOnPushWorker
do
include
RepoHelpers
include
RepoHelpers
include
EmailHelpers
include
EmailSpec
::
Matchers
include
EmailSpec
::
Matchers
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
...
...
spec/workers/pipeline_notification_worker_spec.rb
View file @
819f459b
require
'spec_helper'
require
'spec_helper'
describe
PipelineNotificationWorker
do
describe
PipelineNotificationWorker
do
include
EmailHelpers
let
(
:pipeline
)
do
let
(
:pipeline
)
do
create
(
:ci_pipeline
,
create
(
:ci_pipeline
,
project:
project
,
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