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
17c4e53e
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
spec/models/concerns/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