kookaburra 0.26.1 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.27.0
|
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.
|
8
|
+
s.version = "0.27.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["John Wilger", "Sam Livingston-Gray", "Ravi Gadad"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-08-21"
|
13
13
|
s.description = "Cucumber + Capybara = Kookaburra? It made sense at the time."
|
14
14
|
s.email = "johnwilger@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -47,6 +47,13 @@ class Kookaburra
|
|
47
47
|
# without it having been set
|
48
48
|
dependency_accessor :mental_model
|
49
49
|
|
50
|
+
# This is the logger to which Kookaburra will send various messages
|
51
|
+
# about its operation. This would generally be used to allow
|
52
|
+
# UIDriver subclasses to provide detailed failure information.
|
53
|
+
#
|
54
|
+
# @attribute [rw] logger
|
55
|
+
dependency_accessor :logger
|
56
|
+
|
50
57
|
# Specify a function that can be used to determine if a server error has
|
51
58
|
# occured within your application.
|
52
59
|
#
|
@@ -64,6 +64,12 @@ class Kookaburra
|
|
64
64
|
# `#click_button` are delegated to a {ScopedBrowser} and are
|
65
65
|
# automatically scoped to the component's DOM element.
|
66
66
|
#
|
67
|
+
# @note Even though a `UIComponent` should respond to all of the
|
68
|
+
# methods on the browser (i.e. all of the Capybara DSL methods),
|
69
|
+
# for some reason call to `#select` get routed to `Kernel#select`.
|
70
|
+
# You can get around this by calling it as `self.select`. See
|
71
|
+
# https://gist.github.com/3192103 for an example of this behavior.
|
72
|
+
#
|
67
73
|
# @abstract Subclass and implement (at least) {#component_locator}. Unless
|
68
74
|
# you override the default implementation of {#url}, you must also
|
69
75
|
# override the {#component_path} method.
|
data/lib/kookaburra/ui_driver.rb
CHANGED
@@ -104,6 +104,10 @@ class Kookaburra
|
|
104
104
|
# @return [Kookaburra::MentalModel]
|
105
105
|
def_delegator :configuration, :mental_model
|
106
106
|
|
107
|
+
# @attribute [r] logger
|
108
|
+
# @return [Object]
|
109
|
+
def_delegator :configuration, :logger
|
110
|
+
|
107
111
|
attr_reader :configuration
|
108
112
|
end
|
109
113
|
end
|
@@ -7,6 +7,7 @@ describe Kookaburra::Configuration do
|
|
7
7
|
it_behaves_like :it_has_a_dependency_accessor, :browser
|
8
8
|
it_behaves_like :it_has_a_dependency_accessor, :app_host
|
9
9
|
it_behaves_like :it_has_a_dependency_accessor, :mental_model
|
10
|
+
it_behaves_like :it_has_a_dependency_accessor, :logger
|
10
11
|
|
11
12
|
describe '#server_error_detection' do
|
12
13
|
it 'returns the block that it was last given' do
|
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: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-08-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: patron
|
@@ -238,7 +238,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: '0'
|
239
239
|
segments:
|
240
240
|
- 0
|
241
|
-
hash: -
|
241
|
+
hash: -3018150638405994021
|
242
242
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
243
|
none: false
|
244
244
|
requirements:
|