BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ce4a669d
Commit
ce4a669d
authored
Aug 12, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer described_class, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13810811
And other similar places.
parent
5f5503fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
build_data_builder_spec.rb
spec/lib/gitlab/data_builder/build_data_builder_spec.rb
+1
-1
note_data_builder_spec.rb
spec/lib/gitlab/data_builder/note_data_builder_spec.rb
+1
-1
pipeline_data_builder_spec.rb
spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb
+1
-1
No files found.
spec/lib/gitlab/data_builder/build_data_builder_spec.rb
View file @
ce4a669d
...
@@ -5,7 +5,7 @@ describe Gitlab::DataBuilder::BuildDataBuilder do
...
@@ -5,7 +5,7 @@ describe Gitlab::DataBuilder::BuildDataBuilder do
describe
'.build'
do
describe
'.build'
do
let
(
:data
)
do
let
(
:data
)
do
Gitlab
::
DataBuilder
::
BuildDataBuilder
.
build
(
build
)
described_class
.
build
(
build
)
end
end
it
{
expect
(
data
).
to
be_a
(
Hash
)
}
it
{
expect
(
data
).
to
be_a
(
Hash
)
}
...
...
spec/lib/gitlab/data_builder/note_data_builder_spec.rb
View file @
ce4a669d
...
@@ -3,7 +3,7 @@ require 'spec_helper'
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
Gitlab
::
DataBuilder
::
NoteDataBuilder
,
lib:
true
do
describe
Gitlab
::
DataBuilder
::
NoteDataBuilder
,
lib:
true
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:data
)
{
Gitlab
::
DataBuilder
::
NoteDataBuilder
.
build
(
note
,
user
)
}
let
(
:data
)
{
described_class
.
build
(
note
,
user
)
}
let
(
:fixed_time
)
{
Time
.
at
(
1425600000
)
}
# Avoid time precision errors
let
(
:fixed_time
)
{
Time
.
at
(
1425600000
)
}
# Avoid time precision errors
before
(
:each
)
do
before
(
:each
)
do
...
...
spec/lib/gitlab/data_builder/pipeline_data_builder_spec.rb
View file @
ce4a669d
...
@@ -15,7 +15,7 @@ describe Gitlab::DataBuilder::PipelineDataBuilder do
...
@@ -15,7 +15,7 @@ describe Gitlab::DataBuilder::PipelineDataBuilder do
let!
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let!
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
describe
'.build'
do
describe
'.build'
do
let
(
:data
)
{
Gitlab
::
DataBuilder
::
PipelineDataBuilder
.
build
(
pipeline
)
}
let
(
:data
)
{
described_class
.
build
(
pipeline
)
}
let
(
:attributes
)
{
data
[
:object_attributes
]
}
let
(
:attributes
)
{
data
[
:object_attributes
]
}
let
(
:build_data
)
{
data
[
:builds
].
first
}
let
(
:build_data
)
{
data
[
:builds
].
first
}
let
(
:project_data
)
{
data
[
:project
]
}
let
(
:project_data
)
{
data
[
:project
]
}
...
...
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