spreewald 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/spreewald/web_steps.rb +9 -3
- data/lib/spreewald_support/version.rb +1 -1
- metadata +4 -4
data/lib/spreewald/web_steps.rb
CHANGED
@@ -358,13 +358,17 @@ end
|
|
358
358
|
|
359
359
|
#nodoc
|
360
360
|
Then /^the window should be titled "([^"]*)"$/ do |title|
|
361
|
-
|
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
|
-
|
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
|
-
|
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.
|
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
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-
|
18
|
+
date: 2013-02-20 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|