spec/unit/application/knife_spec.rb in microwave-1.0.4 vs spec/unit/application/knife_spec.rb in microwave-11.400.2
- old
+ new
@@ -21,9 +21,14 @@
describe Chef::Application::Knife do
include SpecHelpers::Knife
before(:all) do
class NoopKnifeCommand < Chef::Knife
+ option :opt_with_default,
+ :short => "-D VALUE",
+ :long => "-optwithdefault VALUE",
+ :default => "default-value"
+
def run
end
end
end