spreewald 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -612,7 +612,7 @@ end
612
612
  # More details [here](https://makandracards.com/makandra/12139-waiting-for-page-loads-and-ajax-requests-to-finish-with-capybara).
613
613
  When /^I wait for the page to load$/ do
614
614
  if [:selenium, :webkit, :poltergeist].include?(Capybara.current_driver)
615
- wait_until { page.evaluate_script('$.active') == 0 }
615
+ wait_until { page.evaluate_script("typeof jQuery === 'undefined' || $.active == 0") } # immediately return when no jQuery is loaded
616
616
  end
617
617
  page.has_content? ''
618
618
  end
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '0.8.4'
2
+ VERSION = '0.8.5'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreewald
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 4
10
- version: 0.8.4
9
+ - 5
10
+ version: 0.8.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-12-12 00:00:00 +01:00
18
+ date: 2014-01-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency