* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
suite writing to the source directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
402402741d
commit
9b0f2e48d7
@ -1,3 +1,8 @@
|
||||
Sat Dec 25 15:04:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
|
||||
suite writing to the source directory.
|
||||
|
||||
Sat Dec 25 15:08:08 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec().
|
||||
|
@ -13,11 +13,14 @@ require "csv"
|
||||
|
||||
class TestEncodings < Test::Unit::TestCase
|
||||
def setup
|
||||
@temp_csv_path = File.join(File.dirname(__FILE__), "temp.csv")
|
||||
require 'tempfile'
|
||||
@temp_csv_file = Tempfile.new(%w"test_csv. .csv")
|
||||
@temp_csv_path = @temp_csv_file.path
|
||||
@temp_csv_file.close
|
||||
end
|
||||
|
||||
def teardown
|
||||
File.unlink(@temp_csv_path) if File.exist? @temp_csv_path
|
||||
@temp_csv_file.close!
|
||||
end
|
||||
|
||||
########################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user