Skip to content

Commit

Permalink
(MODULES-1921) Additional 'write' expectations
Browse files Browse the repository at this point in the history
 - Add an additional check to ensure that the registry 'write' method
   is never called, which can trigger Ruby's bad behavior.
  • Loading branch information
Iristyle committed Aug 13, 2015
1 parent 4e5c5fe commit c022d8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/unit/puppet/provider/registry_value_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
# also, expect that we're not using Rubys each_key / each_value which exhibit bad behavior
Win32::Registry.any_instance.expects(:each_key).never
Win32::Registry.any_instance.expects(:each_value).never

# this covers []= write_s write_i and write_bin
Win32::Registry.any_instance.expects(:write).never
end
end

Expand Down

0 comments on commit c022d8c

Please sign in to comment.