ruby on rails - Serve Static File in Cucumber Test from an HTTP location -


i'm testing json api model carrierwave uploader, i'm allowing uploads via remote_url, need way http address file in public assets, since know those'll around.

to put way:

when rails server running, have static asset @ "http://localhost:3000/assets/logo.png". need address of file while cucumber running - aka, need serve static file while running cucumber, different part of rails app can "download" file.

edit: these test not run browser, although (as of recently), run session. may using cucumber, have written no code use or start capybara.

if i'm understanding question correctly. may want fakeweb or webmock serve back/mock external requests.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -