Stop params[:form][:file] in test_app from crashing

This got triggered on Travis -- I am not sure what is different in their
environment.

I prefer this solution over (params[:form] && params[:form][:file])
so the test doesn't silently pass if something goes badly wrong
This commit is contained in:
Jo Liss 2012-01-03 18:08:55 +01:00
parent 9fd6c85949
commit bbc2b84b24
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@
</p> </p>
<p> <p>
<input type="hidden" name="form[dummy]" value="ensure params[:form] exists"/>
<input type="submit" value="Upload Empty"/> <input type="submit" value="Upload Empty"/>
<p> <p>
</form> </form>