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
2beff956
Commit
2beff956
authored
Jun 29, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to service in confluence model spec
parent
670a8912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/models/integrations/confluence_spec.rb
spec/models/integrations/confluence_spec.rb
+4
-4
No files found.
spec/models/integrations/confluence_spec.rb
View file @
2beff956
...
...
@@ -13,7 +13,7 @@ RSpec.describe Integrations::Confluence do
subject
.
active
=
active
end
context
'when
service
is active'
do
context
'when
integration
is active'
do
let
(
:active
)
{
true
}
it
{
is_expected
.
not_to
allow_value
(
'https://example.com'
).
for
(
:confluence_url
)
}
...
...
@@ -35,7 +35,7 @@ RSpec.describe Integrations::Confluence do
it
{
is_expected
.
to
validate_presence_of
(
:confluence_url
)
}
end
context
'when
service
is inactive'
do
context
'when
integration
is inactive'
do
let
(
:active
)
{
false
}
it
{
is_expected
.
not_to
validate_presence_of
(
:confluence_url
)
}
...
...
@@ -71,13 +71,13 @@ RSpec.describe Integrations::Confluence do
subject
{
project
.
project_setting
.
has_confluence?
}
it
'sets the property to true when
service
is active'
do
it
'sets the property to true when
integration
is active'
do
create
(
:confluence_integration
,
project:
project
,
active:
true
)
is_expected
.
to
be
(
true
)
end
it
'sets the property to false when
service
is not active'
do
it
'sets the property to false when
integration
is not active'
do
create
(
:confluence_integration
,
project:
project
,
active:
false
)
is_expected
.
to
be
(
false
)
...
...
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