diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-05-05 16:31:25 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-05-05 16:31:25 -0700 |
| commit | dfc7e2725f4d80d57aa92bccb14c60b91acbf557 (patch) | |
| tree | 9b926e293d8e0bb0cf92c136b0975c2bbf491ff7 /spec/unit | |
| parent | 1c7bb924bd38042a6b03b5e7a32c24c602087eea (diff) | |
| parent | 61edff9ba5e8e4f8db8bb9cd5a84a986b8703c5d (diff) | |
| download | puppet-dfc7e2725f4d80d57aa92bccb14c60b91acbf557.tar.gz puppet-dfc7e2725f4d80d57aa92bccb14c60b91acbf557.tar.xz puppet-dfc7e2725f4d80d57aa92bccb14c60b91acbf557.zip | |
Merge branch 'bug/2.7.x/7353-kill-for-humans-format-entirely' into 2.7.x
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/application/face_base_spec.rb | 11 | ||||
| -rwxr-xr-x | spec/unit/interface/action_builder_spec.rb | 10 |
2 files changed, 0 insertions, 21 deletions
diff --git a/spec/unit/application/face_base_spec.rb b/spec/unit/application/face_base_spec.rb index 25797ea3e..2a9a22356 100755 --- a/spec/unit/application/face_base_spec.rb +++ b/spec/unit/application/face_base_spec.rb @@ -329,15 +329,4 @@ EOT }.to have_printed(/you invoked the 's' rendering hook/) end end - - describe "#render_as=" do - # This is for compatibility with the format name in 2.7.0rc1, but isn't a - # long term desirable name. We can't just randomly drop it since it was - # released, though, so it will live for a couple of major versions. - # --daniel 2011-05-04 - it "should treat :for_humans as a synonym for :console" do - app.render_as = :for_humans - app.render_as.name.should == :console - end - end end diff --git a/spec/unit/interface/action_builder_spec.rb b/spec/unit/interface/action_builder_spec.rb index 89aef26d0..c39860591 100755 --- a/spec/unit/interface/action_builder_spec.rb +++ b/spec/unit/interface/action_builder_spec.rb @@ -200,16 +200,6 @@ describe Puppet::Interface::ActionBuilder do end end - # :for_humans is an alias for :console, and deprecated, but since we - # shipped it in 2.7.0rc1 we need to support it. --daniel 2011-05-04 - it "should accept :for_humans format" do - action = Puppet::Interface::ActionBuilder.build(face, :foo) do - when_invoked do true end - render_as :for_humans - end - action.render_as.should == :for_humans - end - [:if_you_define_this_format_you_frighten_me, "json", 12].each do |input| it "should fail if given #{input.inspect}" do expect { |
