spreewald 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -358,13 +358,17 @@ end
358
358
 
359
359
  #nodoc
360
360
  Then /^the window should be titled "([^"]*)"$/ do |title|
361
- page.should have_css('title', :text => title)
361
+ patiently do
362
+ page.should have_css('title', :text => title)
363
+ end
362
364
  end
363
365
 
364
366
  When /^I reload the page$/ do
365
367
  case Capybara::current_driver
366
368
  when :selenium
367
- visit page.driver.browser.current_url
369
+ page.driver.browser.execute_script(<<-JAVASCRIPT)
370
+ window.location.reload(true);
371
+ JAVASCRIPT
368
372
  else
369
373
  visit current_path
370
374
  end
@@ -526,7 +530,9 @@ Then /^I should see in this order:?$/ do |text|
526
530
  lines = lines.collect { |line| line.gsub(/\s+/, ' ')}.collect(&:strip).reject(&:blank?)
527
531
  pattern = lines.collect(&Regexp.method(:quote)).join('.*?')
528
532
  pattern = Regexp.compile(pattern)
529
- page.find('body').text.gsub(/\s+/, ' ').should =~ pattern
533
+ patiently do
534
+ page.find('body').text.gsub(/\s+/, ' ').should =~ pattern
535
+ end
530
536
  end
531
537
 
532
538
  # Tests that an input or button with the given label is disabled.
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Spreewald
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
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-02-11 00:00:00 +01:00
18
+ date: 2013-02-20 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency