diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-07-07 09:36:27 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-07 11:14:51 -0700 |
| commit | 4b00c6af911b447265fc3e7ab19bb076840bfef1 (patch) | |
| tree | 08453970292d9c6e4ddd67d3ac31562d236ce3e9 /test | |
| parent | 5f8a2424bcd4f78e71963060b375e12167c7bbef (diff) | |
[#4110] Wrap Type#retrieve calls for backwards compatibility
This patch introduces Type#retrieve_resource as a wrapper for
Type#resource, to coerce the return value from legacy types from Hash to
Resource.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/ral/type/mailalias.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ral/type/mailalias.rb b/test/ral/type/mailalias.rb index 5d5023a8c..ff0e62e09 100755 --- a/test/ral/type/mailalias.rb +++ b/test/ral/type/mailalias.rb @@ -34,7 +34,7 @@ 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.new(:name => "luke", :recipient => "yay", :target => tempfile) - values = resource.retrieve + values = resource.retrieve_resource assert_equal(:absent, values[:recipient]) resource.property(:recipient).expects(:set).with(%w{yay}) assert_nothing_raised("Could not sync mailalias") do |
