diff options
author | Matt Robinson <matt@puppetlabs.com> | 2010-06-04 11:05:09 -0700 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | b5f14c6eeaaf8cc70287f3b1b2f74441157ac4b6 (patch) | |
tree | d7382c9aab6a99014cc28d512b8e8d04e551c566 /spec/unit/file_serving | |
parent | 2b5bd4927569c0a87ea32628cdc4303ff1e83853 (diff) | |
download | puppet-b5f14c6eeaaf8cc70287f3b1b2f74441157ac4b6.tar.gz puppet-b5f14c6eeaaf8cc70287f3b1b2f74441157ac4b6.tar.xz puppet-b5f14c6eeaaf8cc70287f3b1b2f74441157ac4b6.zip |
{#3866] Rename the method metaclass to singleton_class to avoid the deprecation warnings from Rails ActiveSupport
The metaid.rb file came straight from why the lucky stiff's "seeing
metaclasses clearly" article. Rails used this too, but they recently
deprecated the name metaclass in favor of singleton_class to match what
ruby-core decided to do. meta, eigen and singlton class were all
suggested and in the end singleton was agreed upon.
http://redmine.ruby-lang.org/issues/show/1082
Diffstat (limited to 'spec/unit/file_serving')
-rwxr-xr-x | spec/unit/file_serving/content.rb | 2 | ||||
-rwxr-xr-x | spec/unit/file_serving/metadata.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/file_serving/content.rb b/spec/unit/file_serving/content.rb index cba703902..f772b861f 100755 --- a/spec/unit/file_serving/content.rb +++ b/spec/unit/file_serving/content.rb @@ -14,7 +14,7 @@ describe Puppet::FileServing::Content do end it "should should include the IndirectionHooks module in its indirection" do - Puppet::FileServing::Content.indirection.metaclass.included_modules.should include(Puppet::FileServing::IndirectionHooks) + Puppet::FileServing::Content.indirection.singleton_class.included_modules.should include(Puppet::FileServing::IndirectionHooks) end it "should only support the raw format" do diff --git a/spec/unit/file_serving/metadata.rb b/spec/unit/file_serving/metadata.rb index 22f033d4d..ef2b3b6f0 100755 --- a/spec/unit/file_serving/metadata.rb +++ b/spec/unit/file_serving/metadata.rb @@ -14,7 +14,7 @@ describe Puppet::FileServing::Metadata do end it "should should include the IndirectionHooks module in its indirection" do - Puppet::FileServing::Metadata.indirection.metaclass.included_modules.should include(Puppet::FileServing::IndirectionHooks) + Puppet::FileServing::Metadata.indirection.singleton_class.included_modules.should include(Puppet::FileServing::IndirectionHooks) end it "should have a method that triggers attribute collection" do |