Skip to content

Commit

Permalink
Fix file permissions for .netrc fixture
Browse files Browse the repository at this point in the history
Permissions must be 0600 or test will fail. Set using File.chmod in before block.
  • Loading branch information
loganhasson committed May 16, 2014
1 parent a69d4dd commit f4f7ef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/octokit/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
end

describe "with .netrc" do
before do
File.chmod(0600, File.join(fixture_path, '.netrc'))
end

it "can read .netrc files" do
Octokit.reset!
client = Octokit::Client.new(:netrc => true, :netrc_file => File.join(fixture_path, '.netrc'))
Expand Down

0 comments on commit f4f7ef5

Please sign in to comment.