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
cc06bb2c
Commit
cc06bb2c
authored
Dec 17, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify spec/lib/gitlab/current_settings_spec.rb a bit
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
32101a60
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/current_settings_spec.rb
spec/lib/gitlab/current_settings_spec.rb
+3
-3
No files found.
spec/lib/gitlab/current_settings_spec.rb
View file @
cc06bb2c
...
@@ -113,6 +113,8 @@ describe Gitlab::CurrentSettings do
...
@@ -113,6 +113,8 @@ describe Gitlab::CurrentSettings do
end
end
shared_examples
'a non-persisted ApplicationSetting object'
do
shared_examples
'a non-persisted ApplicationSetting object'
do
let
(
:current_settings
)
{
described_class
.
current_application_settings
}
it
'returns a non-persisted ApplicationSetting object'
do
it
'returns a non-persisted ApplicationSetting object'
do
expect
(
current_settings
).
to
be_a
(
ApplicationSetting
)
expect
(
current_settings
).
to
be_a
(
ApplicationSetting
)
expect
(
current_settings
).
not_to
be_persisted
expect
(
current_settings
).
not_to
be_persisted
...
@@ -132,9 +134,7 @@ describe Gitlab::CurrentSettings do
...
@@ -132,9 +134,7 @@ describe Gitlab::CurrentSettings do
end
end
context
'with no ApplicationSetting DB record'
do
context
'with no ApplicationSetting DB record'
do
it_behaves_like
'a non-persisted ApplicationSetting object'
do
it_behaves_like
'a non-persisted ApplicationSetting object'
let
(
:current_settings
)
{
described_class
.
current_application_settings
}
end
end
end
context
'with an existing ApplicationSetting DB record'
do
context
'with an existing ApplicationSetting DB record'
do
...
...
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