Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 如何使用iframe-rails测试AJAX文件上传_Ruby On Rails 4_Rspec - Fatal编程技术网

Ruby on rails 4 如何使用iframe-rails测试AJAX文件上传

Ruby on rails 4 如何使用iframe-rails测试AJAX文件上传,ruby-on-rails-4,rspec,Ruby On Rails 4,Rspec,我正在使用iframe上传文件,我想测试这个功能。没有得到我应该如何测试它。我需要帮助 describe 'POST create' do context 'when the object is valid' do it 'should save the object', :js => true do pending('Yet to figure out how to test the AJAX file upload using iframe.

我正在使用iframe上传文件,我想测试这个功能。没有得到我应该如何测试它。我需要帮助

describe 'POST create' do
     context 'when the object is valid' do

       it 'should save the object', :js => true do
         pending('Yet to figure out how to test the AJAX file upload using iframe.')
       end
     end
end
如果您需要任何其他信息,请告诉我