frameworks-capybara 0.0.3 → 0.0.4
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 +1 -1
- data/frameworks-capybara.gemspec +2 -2
- data/lib/frameworks/capybara.rb +4 -4
- data/lib/frameworks/cucumber.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/frameworks-capybara.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{frameworks-capybara}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["mcrmfc"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-11}
|
13
13
|
s.description = %q{gem ti aid setup of Capybara for testing bbc sites}
|
14
14
|
s.email = %q{mcrobbins@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/frameworks/capybara.rb
CHANGED
@@ -15,7 +15,7 @@ class CapybaraSetup
|
|
15
15
|
when 'headless' then
|
16
16
|
@driver = register_celerity_driver(false,ENV['PROXY_URL'])
|
17
17
|
when 'remote' then
|
18
|
-
@driver = register_remote_driver(ENV['PROXY_URL'], ENV['REMOTE_BROWSER_PROXY'], ENV['PLATFORM'],ENV['REMOTE_BROWSER'],ENV['REMOTE_URL'], ENV['FIREFOX_PROFILE'])
|
18
|
+
@driver = register_remote_driver(ENV['PROXY_URL'], ENV['REMOTE_BROWSER_PROXY'], ENV['PLATFORM'],ENV['REMOTE_BROWSER'], ENV['BROWSER_VERSION'], ENV['REMOTE_URL'], ENV['FIREFOX_PROFILE'])
|
19
19
|
else
|
20
20
|
@driver = register_selenium_driver(ENV['BROWSER'], ENV['FIREFOX_PROFILE'])
|
21
21
|
end
|
@@ -38,13 +38,13 @@ class CapybaraSetup
|
|
38
38
|
env_vars_remote = [ENV['PLATFORM'],ENV['REMOTE_URL'], ENV['REMOTE_BROWSER']]
|
39
39
|
env_vars_remote.each{ |var|
|
40
40
|
if(var==nil)
|
41
|
-
abort 'Please ensure the following environment variables are set PLATFORM, REMOTE_URL, REMOTE_BROWSER (browser to use on remote machine), PROXY_URL (if required) and
|
41
|
+
abort 'Please ensure the following environment variables are set PLATFORM, REMOTE_URL, REMOTE_BROWSER (browser to use on remote machine), PROXY_URL (if required), REMOTE_BROWSER_PROXY (if required) and BROWSER_VERSION (if required)'
|
42
42
|
end
|
43
43
|
}
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
def register_remote_driver(proxy, remote_browser_proxy, platform, browser, remote_url, profile)
|
47
|
+
def register_remote_driver(proxy, remote_browser_proxy, platform, browser, version, remote_url, profile)
|
48
48
|
Capybara.register_driver :remote do |app|
|
49
49
|
#create remote driver client instance
|
50
50
|
client = Selenium::WebDriver::Remote::Http::Default.new
|
@@ -54,7 +54,7 @@ class CapybaraSetup
|
|
54
54
|
client.proxy = Selenium::WebDriver::Proxy.new(:http => proxy)
|
55
55
|
end
|
56
56
|
|
57
|
-
caps = Selenium::WebDriver::Remote::Capabilities.new({:platform => platform, :browser_name => browser, :proxy => Selenium::WebDriver::Proxy.new(:http => remote_browser_proxy)})
|
57
|
+
caps = Selenium::WebDriver::Remote::Capabilities.new({:platform => platform, :browser_name => browser, :version => version, :proxy => Selenium::WebDriver::Proxy.new(:http => remote_browser_proxy)})
|
58
58
|
|
59
59
|
Capybara::Driver::Selenium.new(app,
|
60
60
|
:browser => :remote,
|
data/lib/frameworks/cucumber.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameworks-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- mcrmfc
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-11 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|