aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/file_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure correct permission when `tmpdir` is the same as `dirname`.Markus Reiter2018-10-021-0/+14
|
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-3/+3
| | | | | This autocorrects the violations after adding a custom cop in 3305c78dcd.
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Return value of yielded block in File.atomic_writeIan Ker-Seymer2015-01-281-0/+10
| | | | | | Staying true to Ruby convention, we now return the value of the yielded block from `File.atomic_write {...}`. This mimics the behavior of MRI's `File.open {...}`.
* 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