From 12098f2d54e8e00a687f42837deeef65c7759389 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Mon, 18 Apr 2011 17:21:28 -0700 Subject: (#7013) Handle rendering modes out in the application layer. We no longer establish the rendering mode in the actions; they just default to "nothing", and let that flow on out to the application layer. That lets the facade we put before the face determine the default behaviour. This is mostly a no-op down in the CLI side, but it makes it much easier to integrate into MCollective, HTTP-API, and for other non-CLI users of Faces. Reviewed-By: Max Martin --- spec/unit/interface/action_builder_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit/interface') diff --git a/spec/unit/interface/action_builder_spec.rb b/spec/unit/interface/action_builder_spec.rb index c122d3eb1..bf7afa74e 100755 --- a/spec/unit/interface/action_builder_spec.rb +++ b/spec/unit/interface/action_builder_spec.rb @@ -151,9 +151,9 @@ describe Puppet::Interface::ActionBuilder do end context "#render_as" do - it "should default to :for_humans" do + it "should default to nil (eg: based on context)" do action = Puppet::Interface::ActionBuilder.build(face, :foo) do end - action.render_as.should == :for_humans + action.render_as.should be_nil end it "should fail if not rendering format is given" do -- cgit