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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4b039e5d
Commit
4b039e5d
authored
Mar 14, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't attempt to override a `set` with a `let`
parent
92facb46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/models/ci/build_spec.rb
spec/models/ci/build_spec.rb
+8
-8
No files found.
spec/models/ci/build_spec.rb
View file @
4b039e5d
...
@@ -679,21 +679,21 @@ describe Ci::Build do
...
@@ -679,21 +679,21 @@ describe Ci::Build do
describe
'#erase'
do
describe
'#erase'
do
before
do
before
do
build
.
erase
(
erased_by:
user
)
build
.
erase
(
erased_by:
erased_by
)
end
end
context
'erased by user'
do
context
'erased by user'
do
let!
(
:
user
)
{
create
(
:user
,
username:
'eraser'
)
}
let!
(
:
erased_by
)
{
create
(
:user
,
username:
'eraser'
)
}
include_examples
'erasable'
include_examples
'erasable'
it
'records user who erased a build'
do
it
'records user who erased a build'
do
expect
(
build
.
erased_by
).
to
eq
user
expect
(
build
.
erased_by
).
to
eq
erased_by
end
end
end
end
context
'erased by system'
do
context
'erased by system'
do
let
(
:
user
)
{
nil
}
let
(
:
erased_by
)
{
nil
}
include_examples
'erasable'
include_examples
'erasable'
...
@@ -748,21 +748,21 @@ describe Ci::Build do
...
@@ -748,21 +748,21 @@ describe Ci::Build do
describe
'#erase'
do
describe
'#erase'
do
before
do
before
do
build
.
erase
(
erased_by:
user
)
build
.
erase
(
erased_by:
erased_by
)
end
end
context
'erased by user'
do
context
'erased by user'
do
let!
(
:
user
)
{
create
(
:user
,
username:
'eraser'
)
}
let!
(
:
erased_by
)
{
create
(
:user
,
username:
'eraser'
)
}
include_examples
'erasable'
include_examples
'erasable'
it
'records user who erased a build'
do
it
'records user who erased a build'
do
expect
(
build
.
erased_by
).
to
eq
user
expect
(
build
.
erased_by
).
to
eq
erased_by
end
end
end
end
context
'erased by system'
do
context
'erased by system'
do
let
(
:
user
)
{
nil
}
let
(
:
erased_by
)
{
nil
}
include_examples
'erasable'
include_examples
'erasable'
...
...
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