diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-10-18 16:35:32 -0700 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-12-08 14:57:50 -0800 |
| commit | 3e5927773c1dc7bc6e9af922fef09149d1599ef6 (patch) | |
| tree | e6d265bbffe230253a97f6c7e92442fa61296499 /test/ral | |
| parent | 93526712755d5c30e020754a6f759b204921f423 (diff) | |
| download | puppet-3e5927773c1dc7bc6e9af922fef09149d1599ef6.tar.gz puppet-3e5927773c1dc7bc6e9af922fef09149d1599ef6.tar.xz puppet-3e5927773c1dc7bc6e9af922fef09149d1599ef6.zip | |
Fix #1757 Change file mode representation to octal
This patch changes the internal representation of a file's mode to a
string instead of an integer. This simplifies the problem of displaying
the value consistently throughout all of puppet.
Diffstat (limited to 'test/ral')
| -rwxr-xr-x | test/ral/type/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb index 6322529cf..386c3ca1b 100755 --- a/test/ral/type/file.rb +++ b/test/ral/type/file.rb @@ -612,7 +612,7 @@ class TestFile < Test::Unit::TestCase :mode => "0777" ) - assert_equal(0777, file.should(:mode), "Mode did not get set correctly") + assert_equal("777", file.should(:mode), "Mode did not get set correctly") assert_apply(file) assert_equal(0777, File.stat(path).mode & 007777, "file mode is incorrect") File.unlink(path) |
