summaryrefslogtreecommitdiffstats
path: root/spec/unit/interface
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-18 13:27:10 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-19 10:53:30 -0700
commite6caa2459a75cdfb015e7f4754dd5b44d166b0b5 (patch)
tree1ec7535663b071bfd0ed5caa4dec488e4efb2fd9 /spec/unit/interface
parent36b100a9cffdfcfe6cb661e0f41bb5cb05b19adf (diff)
downloadpuppet-e6caa2459a75cdfb015e7f4754dd5b44d166b0b5.tar.gz
puppet-e6caa2459a75cdfb015e7f4754dd5b44d166b0b5.tar.xz
puppet-e6caa2459a75cdfb015e7f4754dd5b44d166b0b5.zip
maint: make sure we don't ever default to being default...
We tested that we could make something a default action, but we also want to assert that we never accidentally make everything the default action. Paired-With: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'spec/unit/interface')
-rwxr-xr-xspec/unit/interface/action_builder_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/interface/action_builder_spec.rb b/spec/unit/interface/action_builder_spec.rb
index 50784cc40..8f8e8d1d5 100755
--- a/spec/unit/interface/action_builder_spec.rb
+++ b/spec/unit/interface/action_builder_spec.rb
@@ -70,7 +70,12 @@ describe Puppet::Interface::ActionBuilder do
action = Puppet::Interface::ActionBuilder.build(face, :foo) do
default
end
- action.default.should == true
+ action.default.should be_true
+ end
+
+ it "should not be default by, er, default. *cough*" do
+ action = Puppet::Interface::ActionBuilder.build(face, :foo) do end
+ action.default.should be_false
end
end
end