diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-23 16:28:28 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-23 16:28:28 -0700 |
| commit | c25fb94725c9abfb36e67938356f97823f8b605e (patch) | |
| tree | 7ce11df541c57fb660cefef71eee6f0eba429df2 /spec/unit/interface | |
| parent | 7aa8f2252c7b0512c929fb87a6c3a09a952a142a (diff) | |
| download | puppet-c25fb94725c9abfb36e67938356f97823f8b605e.tar.gz puppet-c25fb94725c9abfb36e67938356f97823f8b605e.tar.xz puppet-c25fb94725c9abfb36e67938356f97823f8b605e.zip | |
(#6770) Rename Puppet::Interface::interface method.
Puppet::Interface::interface is now Puppet::Interface::define, also aliased to
Puppet::Interface::[] for convenience.
Paired-With: Nick Lewis
Diffstat (limited to 'spec/unit/interface')
| -rw-r--r-- | spec/unit/interface/catalog_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/certificate_request_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/certificate_revocation_list_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/certificate_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/config_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/configurer_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/facts_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/file_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/key_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/node_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/report_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/resource_spec.rb | 2 | ||||
| -rw-r--r-- | spec/unit/interface/resource_type_spec.rb | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/spec/unit/interface/catalog_spec.rb b/spec/unit/interface/catalog_spec.rb index 1d33fed38..c615181ed 100644 --- a/spec/unit/interface/catalog_spec.rb +++ b/spec/unit/interface/catalog_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:catalog, '0.0.1') do +describe Puppet::Interface.define(:catalog, '0.0.1') do end diff --git a/spec/unit/interface/certificate_request_spec.rb b/spec/unit/interface/certificate_request_spec.rb index 994a19a55..0143ebc85 100644 --- a/spec/unit/interface/certificate_request_spec.rb +++ b/spec/unit/interface/certificate_request_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:certificate_request, '0.0.1') do +describe Puppet::Interface.define(:certificate_request, '0.0.1') do end diff --git a/spec/unit/interface/certificate_revocation_list_spec.rb b/spec/unit/interface/certificate_revocation_list_spec.rb index 024770e20..9655dd3fa 100644 --- a/spec/unit/interface/certificate_revocation_list_spec.rb +++ b/spec/unit/interface/certificate_revocation_list_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:certificate_revocation_list, '0.0.1') do +describe Puppet::Interface.define(:certificate_revocation_list, '0.0.1') do end diff --git a/spec/unit/interface/certificate_spec.rb b/spec/unit/interface/certificate_spec.rb index 45d33feec..e5c63e456 100644 --- a/spec/unit/interface/certificate_spec.rb +++ b/spec/unit/interface/certificate_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:certificate, '0.0.1') do +describe Puppet::Interface.define(:certificate, '0.0.1') do end diff --git a/spec/unit/interface/config_spec.rb b/spec/unit/interface/config_spec.rb index 20a92bf47..a2ec7b528 100644 --- a/spec/unit/interface/config_spec.rb +++ b/spec/unit/interface/config_spec.rb @@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:config, '0.0.1') do +describe Puppet::Interface.define(:config, '0.0.1') do it "should use Settings#print_config_options when asked to print" do Puppet.settings.stubs(:puts) Puppet.settings.expects(:print_config_options) diff --git a/spec/unit/interface/configurer_spec.rb b/spec/unit/interface/configurer_spec.rb index 589e6be95..e97e63b65 100644 --- a/spec/unit/interface/configurer_spec.rb +++ b/spec/unit/interface/configurer_spec.rb @@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') require 'puppet/indirector/catalog/rest' require 'tempfile' -describe Puppet::Interface.interface(:configurer, '0.0.1') do +describe Puppet::Interface.define(:configurer, '0.0.1') do describe "#synchronize" do it "should retrieve and apply a catalog and return a report" do dirname = Dir.mktmpdir("puppetdir") diff --git a/spec/unit/interface/facts_spec.rb b/spec/unit/interface/facts_spec.rb index 4782ecb85..5f0214fd5 100644 --- a/spec/unit/interface/facts_spec.rb +++ b/spec/unit/interface/facts_spec.rb @@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:facts, '0.0.1') do +describe Puppet::Interface.define(:facts, '0.0.1') do it "should define an 'upload' fact" do subject.should be_action(:upload) end diff --git a/spec/unit/interface/file_spec.rb b/spec/unit/interface/file_spec.rb index 4b776fbbc..bd6e31c0e 100644 --- a/spec/unit/interface/file_spec.rb +++ b/spec/unit/interface/file_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:file, '0.0.1') do +describe Puppet::Interface.define(:file, '0.0.1') do end diff --git a/spec/unit/interface/key_spec.rb b/spec/unit/interface/key_spec.rb index 8c950baa1..519497808 100644 --- a/spec/unit/interface/key_spec.rb +++ b/spec/unit/interface/key_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:key, '0.0.1') do +describe Puppet::Interface.define(:key, '0.0.1') do end diff --git a/spec/unit/interface/node_spec.rb b/spec/unit/interface/node_spec.rb index 104081838..91914c3ae 100644 --- a/spec/unit/interface/node_spec.rb +++ b/spec/unit/interface/node_spec.rb @@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:node, '0.0.1') do +describe Puppet::Interface.define(:node, '0.0.1') do it "should set its default format to :yaml" do subject.default_format.should == :yaml end diff --git a/spec/unit/interface/report_spec.rb b/spec/unit/interface/report_spec.rb index 0a7acfac3..23855db09 100644 --- a/spec/unit/interface/report_spec.rb +++ b/spec/unit/interface/report_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:report, '0.0.1') do +describe Puppet::Interface.define(:report, '0.0.1') do end diff --git a/spec/unit/interface/resource_spec.rb b/spec/unit/interface/resource_spec.rb index afaed67b7..408be250c 100644 --- a/spec/unit/interface/resource_spec.rb +++ b/spec/unit/interface/resource_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:resource, '0.0.1') do +describe Puppet::Interface.define(:resource, '0.0.1') do end diff --git a/spec/unit/interface/resource_type_spec.rb b/spec/unit/interface/resource_type_spec.rb index f689accc3..860be282c 100644 --- a/spec/unit/interface/resource_type_spec.rb +++ b/spec/unit/interface/resource_type_spec.rb @@ -2,5 +2,5 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') -describe Puppet::Interface.interface(:resource_type, '0.0.1') do +describe Puppet::Interface.define(:resource_type, '0.0.1') do end |
