Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
74c88f1c
Commit
74c88f1c
authored
Apr 05, 2012
by
Philipp Brumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new tests
parent
a9cda45a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
test/attachment_adapter_test.rb
+4
-0
test/file_adapter_test.rb
+4
-0
test/uploaded_file_adapter_test.rb
+8
-0
No files found.
test/attachment_adapter_test.rb
View file @
74c88f1c
...
...
@@ -16,6 +16,10 @@ class AttachmentAdapterTest < Test::Unit::TestCase
assert_equal
"5k.png"
,
@subject
.
original_filename
end
should
"force binmode on tempfile"
do
assert
@subject
.
instance_variable_get
(
"@tempfile"
).
binmode?
end
should
"get the content type"
do
assert_equal
"image/png"
,
@subject
.
content_type
end
...
...
test/file_adapter_test.rb
View file @
74c88f1c
...
...
@@ -12,6 +12,10 @@ class FileAdapterTest < Test::Unit::TestCase
assert_equal
"5k.png"
,
@subject
.
original_filename
end
should
"force binmode on tempfile"
do
assert
@subject
.
instance_variable_get
(
"@tempfile"
).
binmode?
end
should
"get the content type"
do
assert_equal
"image/png"
,
@subject
.
content_type
end
...
...
test/uploaded_file_adapter_test.rb
View file @
74c88f1c
...
...
@@ -21,6 +21,10 @@ class UploadedFileAdapterTest < Test::Unit::TestCase
assert_equal
"5k.png"
,
@subject
.
original_filename
end
should
"force binmode on tempfile"
do
assert
@subject
.
instance_variable_get
(
"@tempfile"
).
binmode?
end
should
"get the content type"
do
assert_equal
"image/png"
,
@subject
.
content_type
end
...
...
@@ -61,6 +65,10 @@ class UploadedFileAdapterTest < Test::Unit::TestCase
assert_equal
"5k.png"
,
@subject
.
original_filename
end
should
"force binmode on tempfile"
do
assert
@subject
.
instance_variable_get
(
"@tempfile"
).
binmode?
end
should
"get the content type"
do
assert_equal
"image/png"
,
@subject
.
content_type
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