aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/file_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* revises a brittle test in Active SupportXavier Noria2012-08-221-1/+1
| | | | | | | The revised test assumed that the default permissions of a file matched the umask of the process, but in the general case that depends also on the file system. This test was failing in the /vagrant shared folder of Rails development boxes.
* Make File#atomic_write tests pass with umaskThibault Jouan2012-05-291-3/+3
| | | | | | Assertions on file permissions only pass with some combinations of file create mode and the process file mode creation mask. This mask should be applied on the file create mode before related assertions.
* use AS::TestCase as the base classAaron Patterson2012-01-051-1/+1
|
* remove File#to_path aliasVasiliy Ermolovich2011-12-251-4/+0
|
* Fix streaming by having it create a File object, which can be handled by ↵Carlhuda2010-02-231-0/+4
| | | | Rack servers as appropriate
* Explicit test dependenciesJeremy Kemper2009-03-291-0/+1
|
* Use current umask when testing the expected file mode [#823 state:resolved]S. Brent Faulkner2008-08-131-4/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make File.atomic_write copy the original permissions or use the directories ↵Joshua Peek2008-08-061-6/+44
| | | | default.
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Some 1.9 forward compatibilityJeremy Kemper2007-09-141-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix activesupport atomic_write tests when Dir.tmpdir is on another ↵Michael Koziarski2007-09-061-2/+2
| | | | | | partition. Closes #8573 [tpope] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add File.atomic_write to prevent users from seeing half written files. ↵Michael Koziarski2007-02-271-0/+29
Useful for situations like Page Caching and the like. [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de