Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uppy-s3_multipart
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
uppy-s3_multipart
Commits
dc25b310
Unverified
Commit
dc25b310
authored
May 04, 2019
by
Janko Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify #inspect and #to_s output for App
Makes for a nicer `rake routes` command output in Rails apps.
parent
5949bb14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
app.rb
lib/uppy/s3_multipart/app.rb
+5
-0
app_test.rb
test/app_test.rb
+5
-0
No files found.
lib/uppy/s3_multipart/app.rb
View file @
dc25b310
...
...
@@ -20,6 +20,11 @@ module Uppy
@router
.
call
(
env
)
end
def
inspect
"#<Uppy::S3Multipart::App>"
end
alias
to_s
inspect
class
Router
<
Roda
plugin
:all_verbs
plugin
:json
...
...
test/app_test.rb
View file @
dc25b310
...
...
@@ -373,4 +373,9 @@ describe Uppy::S3Multipart::App do
assert_equal
"bob"
,
@s3
.
api_requests
[
0
][
:params
][
:request_payer
]
end
end
it
"defines #inspect and #to_s"
do
assert_equal
"#<Uppy::S3Multipart::App>"
,
@endpoint
.
inspect
assert_equal
"#<Uppy::S3Multipart::App>"
,
@endpoint
.
to_s
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