Commit 74c88f1c by Philipp Brumm

add new tests

parent a9cda45a
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment