aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSiva Gollapalli <siva@joshsoftware.com>2014-11-26 20:31:30 +0530
committerSiva Gollapalli <siva@joshsoftware.com>2015-04-16 23:11:23 +0530
commit76d8a2a63821eb2afcad7e6adfd126c5448bb6c9 (patch)
treeb8573428da21afb30107de138258932adccc7c52 /actionpack
parentc8bab30ce5a7a40be7a3c7c4271e8ae6d2b303bb (diff)
downloadrails-76d8a2a63821eb2afcad7e6adfd126c5448bb6c9.tar.gz
rails-76d8a2a63821eb2afcad7e6adfd126c5448bb6c9.tar.bz2
rails-76d8a2a63821eb2afcad7e6adfd126c5448bb6c9.zip
Issue#17703 Test case for tempfile attribute
+ To avoid regression I am adding this test case on action pack Changed to assert from assert_equal + Added msg to assertion Modified msg
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/test_case_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb
index e348749f78..a1afdc32c7 100644
--- a/actionpack/test/controller/test_case_test.rb
+++ b/actionpack/test/controller/test_case_test.rb
@@ -908,6 +908,11 @@ XML
assert_equal File.open(path, READ_PLAIN).read, plain_file_upload.read
end
+ def test_fixture_file_upload_should_be_able_access_to_tempfile
+ file = fixture_file_upload(FILES_DIR + "/mona_lisa.jpg", "image/jpg")
+ assert file.respond_to?(:tempfile), "expected tempfile should respond on fixture file object, got nothing"
+ end
+
def test_fixture_file_upload
post :test_file_upload,
params: {