Skip to content

Commit

Permalink
Update ChromeDriver from 2.12 to 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Hoer committed Feb 18, 2015
1 parent 419c428 commit dcc746f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.2.1 - 2/18/2015

- Update ChromeDriver from 2.12 to 2.14

## 2.2.0 - 2/5/2015

- Make Windows service an option for HtmlUnit and PhantomJS
Expand Down
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default['selenium']['server_version'] = '2.44.0'
default['selenium']['iedriver_version'] = '2.44.0'
default['selenium']['chromedriver_version'] = '2.12'
default['selenium']['chromedriver_version'] = '2.14'

default['selenium']['release_url'] = 'https://selenium-release.storage.googleapis.com'
default['selenium']['chromedriver_url'] = 'https://chromedriver.storage.googleapis.com'
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'MIT'
description 'Installs/Configures Selenium'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.2.0'
version '2.2.1'

supports 'centos'
supports 'redhat'
Expand Down
16 changes: 8 additions & 8 deletions spec/unit/chromedriver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'windows', version: '2008R2').converge(described_recipe) }

it 'create directory' do
expect(chef_run).to create_directory('C:/selenium/drivers/chromedriver_win32-2.12')
expect(chef_run).to create_directory('C:/selenium/drivers/chromedriver_win32-2.14')
end

it 'download and unzip driver' do
expect(chef_run).to unzip_windows_zipfile_to('C:/selenium/drivers/chromedriver_win32-2.12').with(
source: 'https://chromedriver.storage.googleapis.com/2.12/chromedriver_win32.zip'
expect(chef_run).to unzip_windows_zipfile_to('C:/selenium/drivers/chromedriver_win32-2.14').with(
source: 'https://chromedriver.storage.googleapis.com/2.14/chromedriver_win32.zip'
)
end

it 'link driver' do
expect(chef_run).to create_link('C:/selenium/drivers/chromedriver').with(
to: 'C:/selenium/drivers/chromedriver_win32-2.12'
to: 'C:/selenium/drivers/chromedriver_win32-2.14'
)
end
end
Expand All @@ -28,12 +28,12 @@
end

it 'create directory' do
expect(chef_run).to create_directory('/usr/local/selenium/drivers/chromedriver_linux64-2.12')
expect(chef_run).to create_directory('/usr/local/selenium/drivers/chromedriver_linux64-2.14')
end

it 'downloads chromedriver' do
expect(chef_run).to create_remote_file("#{Chef::Config['file_cache_path']}/chromedriver_linux64-2.12.zip").with(
source: 'https://chromedriver.storage.googleapis.com/2.12/chromedriver_linux64.zip'
expect(chef_run).to create_remote_file("#{Chef::Config['file_cache_path']}/chromedriver_linux64-2.14.zip").with(
source: 'https://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip'
)
end

Expand All @@ -43,7 +43,7 @@

it 'link driver' do
expect(chef_run).to create_link('/usr/local/selenium/drivers/chromedriver').with(
to: '/usr/local/selenium/drivers/chromedriver_linux64-2.12'
to: '/usr/local/selenium/drivers/chromedriver_linux64-2.14'
)
end
end
Expand Down

0 comments on commit dcc746f

Please sign in to comment.