summaryrefslogtreecommitdiffstats
path: root/test/ral
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-12-16 11:30:51 -0800
committerNick Lewis <nick@puppetlabs.com>2010-12-16 11:30:51 -0800
commit480c399f183627f5f588e9dc9f5f86f683c0e468 (patch)
treecb67d36e37e252edceef1cd848cc32d679f5d20e /test/ral
parent73397a24db7e715c7712def75612dc4a5071ca7f (diff)
parent52ca8c78c270b93ce997217900a3d333ad8154cc (diff)
downloadpuppet-480c399f183627f5f588e9dc9f5f86f683c0e468.tar.gz
puppet-480c399f183627f5f588e9dc9f5f86f683c0e468.tar.xz
puppet-480c399f183627f5f588e9dc9f5f86f683c0e468.zip
Merge branch '2.6.x' into next
Manually Resolved Conflicts: lib/puppet/resource/type_collection.rb spec/unit/configurer_spec.rb spec/unit/indirector/catalog/active_record_spec.rb spec/unit/resource/type_collection_spec.rb spec/unit/transaction/resource_harness_spec.rb
Diffstat (limited to 'test/ral')
-rwxr-xr-xtest/ral/type/file.rb2
-rwxr-xr-xtest/ral/type/filesources.rb5
2 files changed, 2 insertions, 5 deletions
diff --git a/test/ral/type/file.rb b/test/ral/type/file.rb
index 7ded8d783..2285e72c8 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)
diff --git a/test/ral/type/filesources.rb b/test/ral/type/filesources.rb
index ace49211c..3363aafb3 100755
--- a/test/ral/type/filesources.rb
+++ b/test/ral/type/filesources.rb
@@ -327,12 +327,9 @@ class TestFileSources < Test::Unit::TestCase
file = nil
assert_nothing_raised {
-
- file = Puppet::Type.type(:file).new(
-
+ file = Puppet::Type.type(:file).new(
:name => dest,
:ensure => "file",
-
:source => source
)
}