From 806ffd2cec8beedd84351bd383bd4ab9906fc7ab Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Thu, 15 Jun 2017 18:33:44 -0700 Subject: Don't include Capybara::DSL in the global scope --- spec/support/wait_for_requests.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/support') diff --git a/spec/support/wait_for_requests.rb b/spec/support/wait_for_requests.rb index ebdc62e4bca..4712ecc658c 100644 --- a/spec/support/wait_for_requests.rb +++ b/spec/support/wait_for_requests.rb @@ -3,6 +3,8 @@ require_relative './wait_for_requests' module WaitForRequests extend self + include Capybara::DSL + # This is inspired by http://www.salsify.com/blog/engineering/tearing-capybara-ajax-tests def block_and_wait_for_requests_complete Gitlab::Testing::RequestBlockerMiddleware.block_requests! -- cgit v1.2.3