diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-22 13:19:25 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-22 14:05:47 -0700 |
| commit | a58bf959ec49c033e0498916a09e77e303c5792e (patch) | |
| tree | 5f0a049580cc9d2a7fe568c3fd9c1cef312ac841 /spec/unit/interface/node_spec.rb | |
| parent | 45613e0f192778cd16f945d5d1eb109e6c8dee2d (diff) | |
| download | puppet-a58bf959ec49c033e0498916a09e77e303c5792e.tar.gz puppet-a58bf959ec49c033e0498916a09e77e303c5792e.tar.xz puppet-a58bf959ec49c033e0498916a09e77e303c5792e.zip | |
(#6786) Change interface storage and access.
Ruby's namespace mechanism introduced a number of problems, including
incorrect name resolution for common and simple cases. Given that,
we've refactored back to class-level data structures with accessor
methods available.
The current method names are unlikely to be the final UI.
Reviewed-By: Daniel Pittman
Diffstat (limited to 'spec/unit/interface/node_spec.rb')
| -rw-r--r-- | spec/unit/interface/node_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/interface/node_spec.rb b/spec/unit/interface/node_spec.rb index cfb15e38a..63109308d 100644 --- a/spec/unit/interface/node_spec.rb +++ b/spec/unit/interface/node_spec.rb @@ -3,9 +3,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') require 'puppet/interface/node' -describe Puppet::Interface::Node do +describe Puppet::Interface.interface(:node) do before do - @interface = Puppet::Interface::Node + @interface = Puppet::Interface.interface(:node) end it "should be a subclass of 'Indirection'" do |
