kookaburra 0.22.0 → 0.22.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.22.0
1
+ 0.22.1
data/kookaburra.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kookaburra"
8
- s.version = "0.22.0"
8
+ s.version = "0.22.1"
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"]
@@ -95,6 +95,15 @@ class Kookaburra
95
95
  @configuration = configuration
96
96
  end
97
97
 
98
+ # Returns the URL for this {UIDriver}.
99
+ #
100
+ # This implementation simply returns the
101
+ # {Kookaburra::Configuration#app_host}, but you might override it if you are
102
+ # using sub-drivers (see {.ui_driver}) and want them to be addressable.
103
+ def url
104
+ @configuration.app_host
105
+ end
106
+
98
107
  protected
99
108
 
100
109
  # @attribute [r] address_bar
@@ -35,6 +35,14 @@ describe Kookaburra::UIDriver do
35
35
  end
36
36
  end
37
37
 
38
+ describe '#url' do
39
+ it 'returns the configured app_host' do
40
+ config = stub('Configuration', :app_host => 'http://my.example.com')
41
+ driver = Kookaburra::UIDriver.new(config)
42
+ driver.url.should == 'http://my.example.com'
43
+ end
44
+ end
45
+
38
46
  it_behaves_like :it_can_make_assertions do
39
47
  let(:subject) { Kookaburra::UIDriver.new(stub('Configuration')) }
40
48
  end
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: 71
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 22
9
- - 0
10
- version: 0.22.0
9
+ - 1
10
+ version: 0.22.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Wilger