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
02494f7c
Commit
02494f7c
authored
Feb 22, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
parent
8a4d68c5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
spec/lib/gitlab/metrics/metric_spec.rb
spec/lib/gitlab/metrics/metric_spec.rb
+1
-1
spec/lib/gitlab/metrics/system_spec.rb
spec/lib/gitlab/metrics/system_spec.rb
+3
-3
spec/lib/gitlab/metrics/transaction_spec.rb
spec/lib/gitlab/metrics/transaction_spec.rb
+2
-2
spec/models/concerns/cache_markdown_field_spec.rb
spec/models/concerns/cache_markdown_field_spec.rb
+3
-2
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+3
-3
No files found.
spec/lib/gitlab/metrics/metric_spec.rb
View file @
02494f7c
...
...
@@ -62,7 +62,7 @@ describe Gitlab::Metrics::Metric do
end
it
'includes the timestamp'
do
expect
(
hash
[
:timestamp
]).
to
be_an
_instance_of
(
Integer
)
expect
(
hash
[
:timestamp
]).
to
be_an
(
Integer
)
end
end
end
...
...
spec/lib/gitlab/metrics/system_spec.rb
View file @
02494f7c
...
...
@@ -29,19 +29,19 @@ describe Gitlab::Metrics::System do
describe
'.cpu_time'
do
it
'returns a Fixnum'
do
expect
(
described_class
.
cpu_time
).
to
be_an
_instance_of
(
Integer
)
expect
(
described_class
.
cpu_time
).
to
be_an
(
Integer
)
end
end
describe
'.real_time'
do
it
'returns a Fixnum'
do
expect
(
described_class
.
real_time
).
to
be_an
_instance_of
(
Integer
)
expect
(
described_class
.
real_time
).
to
be_an
(
Integer
)
end
end
describe
'.monotonic_time'
do
it
'returns a Fixnum'
do
expect
(
described_class
.
monotonic_time
).
to
be_an
_instance_of
(
Integer
)
expect
(
described_class
.
monotonic_time
).
to
be_an
(
Integer
)
end
end
end
spec/lib/gitlab/metrics/transaction_spec.rb
View file @
02494f7c
...
...
@@ -134,7 +134,7 @@ describe Gitlab::Metrics::Transaction do
series:
'rails_transactions'
,
tags:
{
action:
'Foo#bar'
},
values:
{
duration:
0.0
,
allocated_memory:
a_kind_of
(
Numeric
)
},
timestamp:
a
n_instance
_of
(
Integer
)
timestamp:
a
_kind
_of
(
Integer
)
}
expect
(
Gitlab
::
Metrics
).
to
receive
(
:submit_metrics
).
...
...
@@ -151,7 +151,7 @@ describe Gitlab::Metrics::Transaction do
series:
'events'
,
tags:
{
event: :meow
},
values:
{
count:
1
},
timestamp:
a
n_instance
_of
(
Integer
)
timestamp:
a
_kind
_of
(
Integer
)
}
expect
(
Gitlab
::
Metrics
).
to
receive
(
:submit_metrics
).
...
...
spec/models/concerns/cache_markdown_field_spec.rb
View file @
02494f7c
require
'spec_helper'
describe
CacheMarkdownField
do
CacheMarkdownField
::
CACHING_CLASSES
<<
"ThingWithMarkdownFields"
caching_classes
=
CacheMarkdownField
::
CACHING_CLASSES
CacheMarkdownField
::
CACHING_CLASSES
=
[
"ThingWithMarkdownFields"
].
freeze
# The minimum necessary ActiveModel to test this concern
class
ThingWithMarkdownFields
...
...
@@ -54,7 +55,7 @@ describe CacheMarkdownField do
end
end
CacheMarkdownField
::
CACHING_CLASSES
.
delete
(
"ThingWithMarkdownFields"
)
CacheMarkdownField
::
CACHING_CLASSES
=
caching_classes
def
thing_subclass
(
new_attr
)
Class
.
new
(
ThingWithMarkdownFields
)
{
add_attr
(
new_attr
)
}
...
...
spec/models/repository_spec.rb
View file @
02494f7c
...
...
@@ -1382,13 +1382,13 @@ describe Repository, models: true do
describe
'#branch_count'
do
it
'returns the number of branches'
do
expect
(
repository
.
branch_count
).
to
be_an
_instance_of
(
Integer
)
expect
(
repository
.
branch_count
).
to
be_an
(
Integer
)
end
end
describe
'#tag_count'
do
it
'returns the number of tags'
do
expect
(
repository
.
tag_count
).
to
be_an
_instance_of
(
Integer
)
expect
(
repository
.
tag_count
).
to
be_an
(
Integer
)
end
end
...
...
@@ -1738,7 +1738,7 @@ describe Repository, models: true do
context
'with an existing repository'
do
it
'returns the commit count'
do
expect
(
repository
.
commit_count
).
to
be_an
_instance_of
(
Integer
)
expect
(
repository
.
commit_count
).
to
be_an
(
Integer
)
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