This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Add a test for SiteUpload#cache_key (
#5685
)
pull/4/head
ysksn
7 years ago
committed by
Eugen Rochko
parent
1f1838420f
commit
48e27c47a7
1 changed files
with
8 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
spec/models/site_upload_spec.rb
+ 8
- 0
spec/models/site_upload_spec.rb
View File
@ -1,5 +1,13 @@
# frozen_string_literal: true
require
'rails_helper'
RSpec
.
describe
SiteUpload
,
type
:
:model
do
describe
'#cache_key'
do
let
(
:site_upload
)
{
SiteUpload
.
new
(
var
:
'var'
)
}
it
'returns cache_key'
do
expect
(
site_upload
.
cache_key
)
.
to
eq
'site_uploads/var'
end
end
end
Write
Preview
Loading…
Cancel
Save