UnitTestやFunctional
actionpack
1 # Usage example, within a functionaltest: 2 # post :change_av atar, :avatar => ActionCont roller::Te stUploaded File.new(Test::Unit ::TestCase .fixture_p ath + '/files/spo ngebob.png ', 'image/png')
このExampleによると、test/fixtu
というディレクトリを作り、
その中にファイルを置いているようです。
posted by
genki
on Fri 1 Feb 2008
at 00:33