kookaburra 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40ba91318bee567ced157fa2bd8d51367a88e584
4
- data.tar.gz: 6a4c31b072f15bf12fb4802910172a385daab48b
3
+ metadata.gz: b0a20e5fe3f409fd041ce1b5c8175483977bd6ab
4
+ data.tar.gz: ff4fd6760784d688d6388a87c04e3647d7435fd2
5
5
  SHA512:
6
- metadata.gz: 857eaede49769932c27334a67814fe48a150195085068d33391b5a59b123885bdaa428f4340b85eb40886371dd802dd893410d4ce04f958f829183db747379e8
7
- data.tar.gz: a8a53de66691968681c4a8765f2fef89c668ec132fd23ae17e95daf825392a36ae588f692379ca2512e40f9e82a282f0a67a914f34522b87ad7666ebcf894b7c
6
+ metadata.gz: 5624f6a7e4283baa90986d0d05f7d19e201edf07f6135576cdd0feb72b8a79f6f9cfc953f8f3747f403179fa9ce1431bc17d88540e39af74a871c98fc1a10be0
7
+ data.tar.gz: bc4e9a90ea47277c0801c3c304ddc13b18c8b4b9a64622178676ed6018ea6612ab1a31e4dfe78abe7b1ff104a476cd2e654feb397490d0f45b5eb0b722db9afb
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "rspec"
26
26
  spec.add_development_dependency "capybara"
27
- spec.add_development_dependency "capybara-webkit"
27
+ spec.add_development_dependency "poltergeist"
28
28
  spec.add_development_dependency "reek"
29
29
  spec.add_development_dependency "yard"
30
30
  spec.add_development_dependency "kramdown"
@@ -89,7 +89,19 @@ class Kookaburra::RackAppServer
89
89
  end
90
90
 
91
91
  def running?
92
- case (Net::HTTP.start('localhost', port) { |http| http.get('/__identify__') })
92
+ case (Net::HTTP.start('localhost', port) { |http|
93
+ attempts_remaining = 3
94
+ begin
95
+ http.get('/__identify__')
96
+ rescue Net::HTTPBadResponse => e
97
+ if attempts_remaining > 0
98
+ attempts_remaining -= 1
99
+ retry
100
+ else
101
+ raise e
102
+ end
103
+ end
104
+ })
93
105
  when Net::HTTPSuccess, Net::HTTPRedirection
94
106
  true
95
107
  else
@@ -1,3 +1,3 @@
1
1
  class Kookaburra
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
@@ -3,7 +3,7 @@ require 'kookaburra/test_helpers'
3
3
  require 'kookaburra/api_client'
4
4
  require 'kookaburra/rack_app_server'
5
5
  require 'capybara'
6
- require 'capybara/webkit'
6
+ require 'capybara/poltergeist'
7
7
  require 'uuid'
8
8
 
9
9
  require 'support/json_api_app_and_kookaburra_drivers'
@@ -24,7 +24,7 @@ describe "testing a Rack application with Kookaburra", :slow do
24
24
  c.ui_driver_class = MyUIDriver
25
25
  c.api_driver_class = MyAPIDriver
26
26
  c.app_host = 'http://127.0.0.1:%d' % app_server.port
27
- c.browser = Capybara::Session.new(:webkit)
27
+ c.browser = Capybara::Session.new(:poltergeist)
28
28
  c.server_error_detection do |browser|
29
29
  browser.has_css?('head title', :text => 'Internal Server Error', :visible => false)
30
30
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
  require 'kookaburra/test_helpers'
3
3
  require 'kookaburra/rack_app_server'
4
4
  require 'capybara'
5
- require 'capybara/webkit'
5
+ require 'capybara/poltergeist'
6
6
  require 'uuid'
7
7
 
8
8
  require 'support/json_api_app_and_kookaburra_drivers'
@@ -37,7 +37,7 @@ describe 'testing multiple applications', :slow do
37
37
  a.api_driver_class = MyOtherAPIDriver
38
38
  a.app_host = 'http://127.0.0.1:%d' % app_server_2.port
39
39
  end
40
- c.browser = Capybara::Session.new(:webkit)
40
+ c.browser = Capybara::Session.new(:poltergeist)
41
41
  c.server_error_detection do |browser|
42
42
  browser.has_css?('head title', :text => 'Internal Server Error', :visible => false)
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookaburra
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wilger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-19 00:00:00.000000000 Z
13
+ date: 2015-11-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -83,7 +83,7 @@ dependencies:
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
- name: capybara-webkit
86
+ name: poltergeist
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
@@ -283,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
283
  version: '0'
284
284
  requirements: []
285
285
  rubyforge_project:
286
- rubygems_version: 2.2.2
286
+ rubygems_version: 2.4.5.1
287
287
  signing_key:
288
288
  specification_version: 4
289
289
  summary: Window Driver pattern for acceptance tests