diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-12-08 15:28:54 -0800 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-12-08 15:28:54 -0800 |
| commit | 5c8489be9c3ee62c14b524a6d0d4a96dca5b9764 (patch) | |
| tree | e8a10c5091fedde8f4a07719ff5f20dfd1c79f4c /test | |
| parent | 6c8159326cb141a8d5714f65e1854293327e6b75 (diff) | |
| parent | 3e5927773c1dc7bc6e9af922fef09149d1599ef6 (diff) | |
Merge branch 'ticket/2.6.next/1757' into 2.6.next
Diffstat (limited to 'test')
| -rwxr-xr-x | test/language/snippets.rb | 3 | ||||
| -rwxr-xr-x | test/ral/type/file.rb | 2 |
2 files changed, 4 insertions, 1 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 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) |
