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
787e4345
Commit
787e4345
authored
Feb 01, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getting this green
parent
818829df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
db/schema.rb
db/schema.rb
+2
-1
spec/uploaders/object_storage_spec.rb
spec/uploaders/object_storage_spec.rb
+2
-2
No files found.
db/schema.rb
View file @
787e4345
...
...
@@ -2250,11 +2250,12 @@ ActiveRecord::Schema.define(version: 20180201101405) do
t
.
string
"model_type"
t
.
string
"uploader"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
integer
"store"
end
add_index
"uploads"
,
[
"checksum"
],
name:
"index_uploads_on_checksum"
,
using: :btree
add_index
"uploads"
,
[
"model_id"
,
"model_type"
],
name:
"index_uploads_on_model_id_and_model_type"
,
using: :btree
add_index
"uploads"
,
[
"
path"
],
name:
"index_uploads_on
_path"
,
using: :btree
add_index
"uploads"
,
[
"
uploader"
,
"path"
],
name:
"index_uploads_on_uploader_and
_path"
,
using: :btree
create_table
"user_agent_details"
,
force: :cascade
do
|
t
|
t
.
string
"user_agent"
,
null:
false
...
...
spec/uploaders/object_storage_spec.rb
View file @
787e4345
...
...
@@ -148,7 +148,7 @@ describe ObjectStorage do
describe
'#use_file'
do
context
'when file is stored locally'
do
it
"calls a regular path"
do
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
not_to
yield_with_args
(
/tmp\/cache/
)
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
not_to
yield_with_args
(
%r[tmp/cache]
)
end
end
...
...
@@ -160,7 +160,7 @@ describe ObjectStorage do
end
it
"calls a cache path"
do
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
to
yield_with_args
(
/tmp\/cache/
)
expect
{
|
b
|
uploader
.
use_file
(
&
b
)
}.
to
yield_with_args
(
%r[tmp/cache]
)
end
end
end
...
...
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