acceptance_test 1.9.4 → 1.9.5

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2Y2NDhmZTJjNDhmOGJjNGU0MmJlMzBhYTVhYjdiZDViMWJjZDU1Zg==
4
+ Nzk2ODY2NjZmN2Q1MGUxYTU4Nzg4NjEyNWJjODcxYzI1MDgxZGVhNg==
5
5
  data.tar.gz: !binary |-
6
- MTU3ZTVhZTVjMGJlODllZDlhZmY5NTU3NDU5YmYyMjYyOGFjYjU4YQ==
6
+ ZTkwZWUwZjQyMDJiNDUzYjkzOTdmNTcwNjJiMzRhYzcwMTZlZDdlMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDQ1NDAzYTc3ZmEyYTY0YTZkNzU1ZWViMDdhZDhkOTE0N2E4ZjMyZjdjOWM2
10
- Y2NhNDNiODdlYzNmNjhiNmRmNDM4NzNlNWI0ZGU0NWE5M2ZhY2YwNzQ3MjYz
11
- YmZlMjg5NWM2NzhmYWJhYWY0MTM1NzM3OTA4Y2Y5ODZhMzU2ZGM=
9
+ MWYwMzBjY2YzMGM3ZjgyOWE0MmM0YTU2YmU0ZTI3M2NhYzlkNzRiOGFkNTg3
10
+ MTFjY2I3YzM3M2FkMjI5YjAzMjZiNTY5ZmVjMTUxYjFkMzIwNTY3Y2VlODZi
11
+ ZGI3ZTVhNzczYzRjMWU2N2VjYTQ2MWFmNGE2ZDFhMDI3OTM2MDg=
12
12
  data.tar.gz: !binary |-
13
- MTRhMjJhYmJjM2Q4NWM0ZmRhMjE5NTgzYTRiZjdjN2UwNmRiY2I4YjQwOTVj
14
- ZWI3ZjVlZDAxOWQ4YzM3MDI4MDA1NzkzZGMyMjE5MmMxYjkxNDE3OTMwMzBl
15
- OGY4MjU5ODhmZGZlZjcxOGI5MWQyNDM3MTJjNzgyYzUwYzQzZGY=
13
+ NGJlMDYxNTc3NjQwMDhhNmRhYzdlZjAwNDI5MmE3YmZkMzlhMmZhYjJmYTM4
14
+ ODAxZmZiMTU5YzVhMjI5Mzk0NGUyYTYwMWRjNTUyMGQ4NTBiMTg2N2JhY2Ji
15
+ N2M0ODVjZWU5N2Q0MjJhYmFlZmMxMTJhNjVkZWI3MjllZTgzZTY=
data/CHANGES CHANGED
@@ -252,3 +252,7 @@
252
252
  == Version 1.9.4
253
253
 
254
254
  * Bug fix
255
+
256
+ == Version 1.9.5
257
+
258
+ * Fix issue with remote selenium and chrome
@@ -61,14 +61,32 @@ class DriverManager
61
61
  if selenium_url
62
62
  properties[:browser] = :remote
63
63
  properties[:url] = selenium_url
64
- properties[:desired_capabilities] = capabilities if capabilities
65
64
 
65
+ case browser
66
+ when :firefox
66
67
  # profile = Selenium::WebDriver::Firefox::Profile.new
67
68
  # profile.enable_firebug
68
- #
69
- # properties[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile)
70
- #properties[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.internet_explorer
71
-
69
+ # capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile)
70
+
71
+ caps = Selenium::WebDriver::Remote::Capabilities.firefox
72
+ when :chrome
73
+ caps = Selenium::WebDriver::Remote::Capabilities.chrome
74
+ else
75
+ ;
76
+ end
77
+
78
+ desired_capabilities =
79
+ if caps
80
+ capabilities.each do |key, value|
81
+ caps[key] = value
82
+ end if capabilities
83
+
84
+ caps
85
+ elsif capabilities
86
+ capabilities
87
+ end
88
+
89
+ properties[:desired_capabilities] = desired_capabilities if desired_capabilities
72
90
  else
73
91
  properties[:browser] = browser
74
92
  end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.9.4"
2
+ VERSION = "1.9.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-08 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen