diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-27 12:12:05 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-27 12:12:05 -0700 |
| commit | ebf49f98357f93b33e09c0ecbdee1c5c2db87569 (patch) | |
| tree | 8500c7f7c87ca5f32f22a70fde97b738c0427f54 /spec/unit/interface | |
| parent | 1aaf5fdc51e165c7d0f377450016cd4fb3767c02 (diff) | |
| parent | 0256d67e1a51a37f2c87ec197bdff6ef3a6b269f (diff) | |
| download | puppet-ebf49f98357f93b33e09c0ecbdee1c5c2db87569.tar.gz puppet-ebf49f98357f93b33e09c0ecbdee1c5c2db87569.tar.xz puppet-ebf49f98357f93b33e09c0ecbdee1c5c2db87569.zip | |
Merge branch 'feature/2.7.x/6962-finish-documentation-api-for-faces' into 2.7.x
Diffstat (limited to 'spec/unit/interface')
| -rwxr-xr-x | spec/unit/interface/option_builder_spec.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/unit/interface/option_builder_spec.rb b/spec/unit/interface/option_builder_spec.rb index e9346852c..3e91c683b 100755 --- a/spec/unit/interface/option_builder_spec.rb +++ b/spec/unit/interface/option_builder_spec.rb @@ -16,13 +16,15 @@ describe Puppet::Interface::OptionBuilder do option.should be_an_instance_of Puppet::Interface::Option end - it "should support documentation declarations" do - text = "this is the description" - option = Puppet::Interface::OptionBuilder.build(face, "--foo") do - desc text + [:description, :summary].each do |doc| + it "should support #{doc} declarations" do + text = "this is the #{doc}" + option = Puppet::Interface::OptionBuilder.build(face, "--foo") do + self.send doc, text + end + option.should be_an_instance_of Puppet::Interface::Option + option.send(doc).should == text end - option.should be_an_instance_of Puppet::Interface::Option - option.desc.should == text end context "before_action hook" do |
