Commit graph

7 commits

Author SHA1 Message Date
Mike Greiling
787ef979ad
fix bracket styling 2017-11-02 10:20:11 -05:00
Mike Greiling
5445f839e8
allow inspect_request to inject request headers in order to test Sendfile requests in jobs_spec.rb 2017-10-30 15:14:25 -05:00
Mike Greiling
f44665c893
slow down requests for dropzone uploads to avoid race conditions 2017-10-24 16:25:04 +03:00
Mike Greiling
6d0045d267
fix rubocop violations 2017-10-24 10:47:03 +03:00
Mike Greiling
a92693df77
add InspectRequests helper 2017-10-23 17:00:42 +03:00
Mike Greiling
b612bcfc64
implement basic request inspector for use in Capybara tests 2017-10-23 17:00:41 +03:00
Rémy Coutable
645a55f19b Introduce a new middleware for the test environment that can block requests
The idea is that after each feature spec example, we block all incoming
requests at the Rack level, go to the 'about:blank' page, and wait until
the current requests reach 0.

This should solve the problem where a request would end after database
cleaner performed the database truncation. The problem was that a GET
request can still lead to records creation (e.g. namespaces or routes).

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-22 19:45:21 +01:00