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/language | |
| parent | 93526712755d5c30e020754a6f759b204921f423 (diff) | |
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/language')
| -rwxr-xr-x | test/language/snippets.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/language/snippets.rb b/test/language/snippets.rb index 51c5e23fe..a10e8e870 100755 --- a/test/language/snippets.rb +++ b/test/language/snippets.rb @@ -37,6 +37,9 @@ class TestSnippets < Test::Unit::TestCase end def assert_mode_equal(mode, path) + if mode.is_a? Integer + mode = mode.to_s(8) + end unless file = @catalog.resource(:file, path) raise "Could not find file #{path}" end |
