Ruby on rails 4 如何使用iframe-rails测试AJAX文件上传
我正在使用iframe上传文件,我想测试这个功能。没有得到我应该如何测试它。我需要帮助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.
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
如果您需要任何其他信息,请告诉我