From 952ebb8bfaad10490ff15d70b4f69f3c0a52e481 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 8 Oct 2008 22:05:43 -0500 Subject: Fixing a test that was failing because of the change to retrieve() in ee579641 Signed-off-by: Luke Kanies --- test/ral/type/mailalias.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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 -- cgit