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
97ca9352
Commit
97ca9352
authored
Apr 23, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix layout in specs
parent
8387a827
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
spec/lib/gitlab/utils/measuring_spec.rb
spec/lib/gitlab/utils/measuring_spec.rb
+2
-1
spec/support/shared_examples/tasks/gitlab/import_export/measurable_shared_examples.rb
.../tasks/gitlab/import_export/measurable_shared_examples.rb
+1
-1
No files found.
spec/lib/gitlab/utils/measuring_spec.rb
View file @
97ca9352
...
...
@@ -5,7 +5,6 @@ require 'fast_spec_helper'
describe
Gitlab
::
Utils
::
Measuring
do
describe
'#execute_with'
do
let
(
:measurement_logger
)
{
double
(
:logger
)
}
let
(
:measurement_enabled
)
{
true
}
let
(
:base_log_data
)
do
{
class:
described_class
.
name
...
...
@@ -16,6 +15,7 @@ describe Gitlab::Utils::Measuring do
subject
{
described_class
.
execute_with
(
measurement_enabled
,
measurement_logger
,
base_log_data
)
{
result_block
}
}
context
'when measurement is enabled'
do
let
(
:measurement_enabled
)
{
true
}
let!
(
:measurement
)
{
described_class
.
new
(
logger:
measurement_logger
,
base_log_data:
base_log_data
)
}
before
do
...
...
@@ -33,6 +33,7 @@ describe Gitlab::Utils::Measuring do
is_expected
.
to
eq
(
result_block
)
end
end
context
'when measurement is disabled'
do
let
(
:measurement_enabled
)
{
false
}
...
...
spec/support/shared_examples/tasks/gitlab/import_export/measurable_shared_examples.rb
View file @
97ca9352
...
...
@@ -5,7 +5,7 @@ RSpec.shared_examples 'measurable' do
let
(
:measurement_enabled
)
{
true
}
it
'prints measurement results'
do
expect
{
subject
}.
to
output
(
including
(
"time_to_finish"
)).
to_stdout
expect
{
subject
}.
to
output
(
including
(
'time_to_finish'
)).
to_stdout
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