diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-18 15:23:03 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-19 10:53:42 -0700 |
| commit | 5938452dccc8c925bc6275a62ae96f50916cc239 (patch) | |
| tree | 16553eb01610d066c529230cf5f5c4f546a63d75 /spec/unit/interface_spec.rb | |
| parent | 5258e06a39e11c2cc1951af9235605a29a155c36 (diff) | |
| download | puppet-5938452dccc8c925bc6275a62ae96f50916cc239.tar.gz puppet-5938452dccc8c925bc6275a62ae96f50916cc239.tar.xz puppet-5938452dccc8c925bc6275a62ae96f50916cc239.zip | |
(#7013) Strip out old face-wide rendering defaults.
Now we want to support action-based rendering, it is super-hard to define the
semantics around defaulting where things are unspecified: the execution
context (CLI, HTTP, etc) vs the face, vs the action all have different
semantics.
Without solving the problem of how we express all that context and those
semantics down in the action, especially one written by a third party, this
just becomes a box of counter-intuitive and annoying semantics and edge-cases.
Reviewed-By: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'spec/unit/interface_spec.rb')
| -rwxr-xr-x | spec/unit/interface_spec.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/unit/interface_spec.rb b/spec/unit/interface_spec.rb index e52b45d8a..799b8c4b4 100755 --- a/spec/unit/interface_spec.rb +++ b/spec/unit/interface_spec.rb @@ -99,16 +99,6 @@ describe Puppet::Interface do subject.new(:me, '0.0.1').to_s.should =~ /\bme\b/ end - it "should allow overriding of the default format" do - face = subject.new(:me, '0.0.1') - face.set_default_format :foo - face.default_format.should == :foo - end - - it "should default to :pson for its format" do - subject.new(:me, '0.0.1').default_format.should == :pson - end - # Why? it "should create a class-level autoloader" do subject.autoloader.should be_instance_of(Puppet::Util::Autoload) |
