summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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