Skip to content

Commit

Permalink
Merge pull request #34 from heroku/fix-perms
Browse files Browse the repository at this point in the history
set data file permissions back to be world readable after being used
  • Loading branch information
Jeff Dickey committed Dec 17, 2014
2 parents 99a2ace + 9f4cf00 commit ee0d988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_netrc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def setup
File.chmod(0644, "data/permissive.netrc")
end

def teardown
Dir.glob('data/*.netrc').each{|f| File.chmod(0644, f)}
end

def test_parse_empty
pre, items = Netrc.parse(Netrc.lex([]))
assert_equal("", pre)
Expand Down

0 comments on commit ee0d988

Please sign in to comment.