summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-08 22:05:43 -0500
committerLuke Kanies <luke@madstop.com>2008-10-08 22:05:43 -0500
commit952ebb8bfaad10490ff15d70b4f69f3c0a52e481 (patch)
treeb73ef887ab805f9abc7a8f4269d5acd571c8a553
parenta5fe87fb3c54dd0dfa20e6220cc76c7969c27d03 (diff)
downloadpuppet-952ebb8bfaad10490ff15d70b4f69f3c0a52e481.tar.gz
puppet-952ebb8bfaad10490ff15d70b4f69f3c0a52e481.tar.xz
puppet-952ebb8bfaad10490ff15d70b4f69f3c0a52e481.zip
Fixing a test that was failing because of the change to retrieve() in ee579641
Signed-off-by: Luke Kanies <luke@madstop.com>
-rwxr-xr-xtest/ral/type/mailalias.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ral/type/mailalias.rb b/test/ral/type/mailalias.rb
index ff1dd562a..637022330 100755
--- a/test/ral/type/mailalias.rb
+++ b/test/ral/type/mailalias.rb
@@ -34,12 +34,11 @@ class TestMailAlias < Test::Unit::TestCase
# This isn't much of a test, but then, it's not much of a type.
def test_recipient_arrays
resource = @type.create(:name => "luke", :recipient => "yay", :target => tempfile)
- resource.provider.expects(:recipient).returns([:absent])
values = nil
assert_nothing_raised("Could not retrieve mailalias") do
values = resource.retrieve.inject({}) { |hash, a| hash[a[0].name] = a[1]; hash }
end
- assert_equal([:absent], values[:recipient])
+ assert_equal(:absent, values[:recipient])
resource.property(:recipient).expects(:set).with(%w{yay})
assert_nothing_raised("Could not sync mailalias") do
resource.property(:recipient).sync