diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 21:29:08 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 21:29:08 +0000 |
| commit | 60ea7d2a9df65f3c2ed492ec4447420c5e5151fe (patch) | |
| tree | de99ac27de31df3cadc4b721406b579404106d9c /test/ral/manager | |
| parent | 3d17685f9954b584cf84a6fe224b2513007108f0 (diff) | |
Fixing #432 - you can now manage home dirs with users. You cannot yet purge home directories, because there is still controversy over how that should be done. Also, allowdupe is now handled like a feature, which is, um, better.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2328 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/ral/manager')
| -rwxr-xr-x | test/ral/manager/provider.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/ral/manager/provider.rb b/test/ral/manager/provider.rb index a314506c5..3b727a4c5 100755 --- a/test/ral/manager/provider.rb +++ b/test/ral/manager/provider.rb @@ -138,6 +138,9 @@ class TestProviderFeatures < Test::Unit::TestCase end def test_has_feature + # Define a new feature that has no methods + @type.feature(:nomeths, "desc") + # Define a provider with nothing provider = @type.provide(:nothing) {} @@ -163,8 +166,14 @@ class TestProviderFeatures < Test::Unit::TestCase has_features :alpha end + # And a provider that declares it has our methodless feature. + @type.provide(:none) do + has_features :nomeths + end + should = {:nothing => [], :both => [:numeric, :alpha], - :letters => [:alpha], :numbers => [:numeric]} + :letters => [:alpha], :numbers => [:numeric], + :none => [:nomeths]} should.each do |name, features| provider = @type.provider(name) |
