1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

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

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>