summaryrefslogtreecommitdiff
path: root/spec/support/wait_for_ajax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/wait_for_ajax.rb')
-rw-r--r--spec/support/wait_for_ajax.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/wait_for_ajax.rb b/spec/support/wait_for_ajax.rb
index b90fc112671..0f9dc2dee75 100644
--- a/spec/support/wait_for_ajax.rb
+++ b/spec/support/wait_for_ajax.rb
@@ -8,4 +8,8 @@ module WaitForAjax
def finished_all_ajax_requests?
page.evaluate_script('jQuery.active').zero?
end
+
+ def javascript_test?
+ [:selenium, :webkit, :chrome, :poltergeist].include?(Capybara.current_driver)
+ end
end