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
17c4e53e
Unverified
Commit
17c4e53e
authored
May 17, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rails5 specific tests for #cast_value_from_cache
parent
13298bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
redis_cacheable_spec.rb
spec/models/concerns/redis_cacheable_spec.rb
+2
-24
No files found.
spec/models/concerns/redis_cacheable_spec.rb
View file @
17c4e53e
...
...
@@ -85,34 +85,12 @@ describe RedisCacheable do
end
describe
'#cast_value_from_cache'
do
let
(
:instance
)
{
Ci
::
Runner
.
new
}
subject
{
instance
.
__send__
(
:cast_value_from_cache
,
attribute
,
value
)
}
shared_context
'runner contacted_at context'
do
context
'with runner contacted_at'
do
let
(
:instance
)
{
Ci
::
Runner
.
new
}
let
(
:attribute
)
{
:contacted_at
}
let
(
:value
)
{
'2018-05-07 13:53:08 UTC'
}
end
context
'on rails5'
do
include_context
'runner contacted_at context'
before
do
allow
(
Gitlab
).
to
receive
(
:rails5?
).
and_return
(
true
)
end
it
'converts cache string to appropriate type'
do
pending
'Migration to rails5'
expect
(
subject
).
to
be_an_instance_of
(
ActiveSupport
::
TimeWithZone
)
end
end
context
'not on rails5'
do
include_context
'runner contacted_at context'
before
do
allow
(
Gitlab
).
to
receive
(
:rails5?
).
and_return
(
false
)
end
it
'converts cache string to appropriate type'
do
expect
(
subject
).
to
be_an_instance_of
(
ActiveSupport
::
TimeWithZone
)
...
...
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