Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add new tests

  • Loading branch information...
commit 74c88f1c9b4b59b76116474e82ee63da3a05b71c 1 parent a9cda45
@brumm brumm authored
View
4 test/attachment_adapter_test.rb
@@ -16,6 +16,10 @@ def setup
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
View
4 test/file_adapter_test.rb
@@ -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
View
8 test/uploaded_file_adapter_test.rb
@@ -21,6 +21,10 @@ class UploadedFile < OpenStruct; end
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 UploadedFile < OpenStruct; end
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
Please sign in to comment.
Something went wrong with that request. Please try again.