Skip to content

Commit

Permalink
rubocop: fix Style/NumericLiteralPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 26, 2016
1 parent 62324cf commit b0860f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/puppet/provider/network_config/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ def self.unmunge(props)
end

def self.post_flush_hook(filename)
File.chmod(0644, filename)
File.chmod(0o644, filename)
end
end
2 changes: 1 addition & 1 deletion spec/unit/provider/network_config/redhat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def fixture_data(file)

describe 'when flushing a dirty file' do
it do
File.expects(:chmod).with(0644, '/not/a/real/file')
File.expects(:chmod).with(0o644, '/not/a/real/file')
File.expects(:unlink).never
described_class.stubs(:perform_write)
described_class.dirty_file!('/not/a/real/file')
Expand Down

0 comments on commit b0860f5

Please sign in to comment.