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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -