Skip to content

Commit

Permalink
skip on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Oct 15, 2013
1 parent d3a56c7 commit ea49476
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/lumberjack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
describe "lumberjack" do
before :each do
# TODO(sissel): Generate a self-signed SSL cert
@file = Tempfile.new("lumberjack-test-file")
@ssl_cert = Tempfile.new("lumberjack-test-file")
@ssl_key = Tempfile.new("lumberjack-test-file")
@ssl_csr = Tempfile.new("lumberjack-test-file")
@file = Stud::Temporary.file("lumberjack-test-file")
@ssl_cert = Stud::Temporary.file("lumberjack-test-file")
@ssl_key = Stud::Temporary.file("lumberjack-test-file")
@ssl_csr = Stud::Temporary.file("lumberjack-test-file")

# Generate the ssl key
system("openssl genrsa -out #{@ssl_key.path} 1024")
Expand All @@ -35,10 +35,10 @@
end # before each

after :each do
@file.close
@ssl_cert.close
@ssl_key.close
@ssl_csr.close
[@file, @ssl_cert, @ssl_key, @ssl_csr].each do |f|
f.close
File.unlink(f.path)
end
Process::kill("KILL", @lumberjack.pid)
Process::wait(@lumberjack.pid)
end
Expand Down

0 comments on commit ea49476

Please sign in to comment.