kookaburra 0.9.0 → 0.9.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.9.1
data/kookaburra.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kookaburra"
8
- s.version = "0.9.0"
8
+ s.version = "0.9.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Renewable Funding, LLC"]
12
- s.date = "2012-01-24"
12
+ s.date = "2012-01-25"
13
13
  s.description = "Cucumber + Capybara = Kookaburra? It made sense at the time."
14
14
  s.email = "devteam@renewfund.com"
15
15
  s.extra_rdoc_files = [
@@ -18,11 +18,12 @@ module Kookaburra
18
18
  no_500_error!
19
19
  end
20
20
 
21
+ # Does not wait, so should only be used after failing a check
22
+ # for being in the expected place.
21
23
  def no_500_error!
22
- if browser.has_css?('head title', :text => 'Internal Server Error')
23
- sleep 30 if ENV['GIMME_CRAP']
24
- raise Unexpected500, browser.body
25
- end
24
+ return if browser.all(:css, 'head title', :text => 'Internal Server Error').empty?
25
+ sleep 30 if ENV['GIMME_CRAP']
26
+ raise Unexpected500, browser.body
26
27
  end
27
28
  end
28
29
  end
@@ -48,8 +48,9 @@ module Kookaburra
48
48
  end
49
49
 
50
50
  def visible?
51
- no_500_error!
52
- component_visible?
51
+ v= component_visible?
52
+ no_500_error! unless v
53
+ v
53
54
  end
54
55
 
55
56
  # Default implementation navigates directly to this UIComponent's
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookaburra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Renewable Funding, LLC
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-24 00:00:00 Z
18
+ date: 2012-01-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement