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
f17b9b2f
Commit
f17b9b2f
authored
Jun 29, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to service in base_issue_tracker_spec
parent
479f810d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/models/integrations/base_issue_tracker_spec.rb
spec/models/integrations/base_issue_tracker_spec.rb
+6
-6
No files found.
spec/models/integrations/base_issue_tracker_spec.rb
View file @
f17b9b2f
...
@@ -7,26 +7,26 @@ RSpec.describe Integrations::BaseIssueTracker do
...
@@ -7,26 +7,26 @@ RSpec.describe Integrations::BaseIssueTracker do
let
(
:project
)
{
create
:project
}
let
(
:project
)
{
create
:project
}
describe
'only one issue tracker per project'
do
describe
'only one issue tracker per project'
do
let
(
:
service
)
{
Integrations
::
Redmine
.
new
(
project:
project
,
active:
true
,
issue_tracker_data:
build
(
:issue_tracker_data
))
}
let
(
:
integration
)
{
Integrations
::
Redmine
.
new
(
project:
project
,
active:
true
,
issue_tracker_data:
build
(
:issue_tracker_data
))
}
before
do
before
do
create
(
:custom_issue_tracker_integration
,
project:
project
)
create
(
:custom_issue_tracker_integration
,
project:
project
)
end
end
context
'when
service
is changed manually by user'
do
context
'when
integration
is changed manually by user'
do
it
'executes the validation'
do
it
'executes the validation'
do
valid
=
service
.
valid?
(
:manual_change
)
valid
=
integration
.
valid?
(
:manual_change
)
expect
(
valid
).
to
be_falsey
expect
(
valid
).
to
be_falsey
expect
(
service
.
errors
[
:base
]).
to
include
(
expect
(
integration
.
errors
[
:base
]).
to
include
(
'Another issue tracker is already in use. Only one issue tracker service can be active at a time'
'Another issue tracker is already in use. Only one issue tracker service can be active at a time'
)
)
end
end
end
end
context
'when
service
is changed internally'
do
context
'when
integration
is changed internally'
do
it
'does not execute the validation'
do
it
'does not execute the validation'
do
expect
(
service
.
valid?
).
to
be_truthy
expect
(
integration
.
valid?
).
to
be_truthy
end
end
end
end
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