Skip to content

Commit

Permalink
Fix #1 WARN: Cloning resource attributes for env[PATH] from prior res…
Browse files Browse the repository at this point in the history
…ource (CHEF-3694)
  • Loading branch information
Dennis Hoer committed Oct 5, 2015
1 parent 7398051 commit cc37e7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1

- Fix #1 WARN: Cloning resource attributes for env[PATH] from prior resource (CHEF-3694)

## 1.0.0

- Initial release
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 'Selenium WebDriver for Internet Explorer'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.0'
version '1.0.1'

supports 'windows'

Expand Down
3 changes: 2 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
to "#{iedriver_dir}\\IEDriverServer.exe"
end

env 'PATH' do
env 'Add iedriver to path' do
key_name 'PATH'
action :modify
delim ::File::PATH_SEPARATOR
value node['iedriver']['home']
Expand Down
5 changes: 3 additions & 2 deletions spec/unit/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
)
end

it 'adds driver to path' do
expect(chef_run).to modify_env('PATH').with(
it 'adds iedriver to path' do
expect(chef_run).to modify_env('Add iedriver to path').with(
key_name: 'PATH',
value: 'C:\iedriver'
)
end
Expand Down

0 comments on commit cc37e7e

Please sign in to comment.