Permalink
Browse files

CHEF-2471: move NoopKnifeCommand back into the describe block

commit 012ed1 moved NoopKnifeCommand out of the describe block.
this breaks some tests on my Ubuntu system. Moving it back
until we remember why.
  • Loading branch information...
1 parent 484abd3 commit aee18dd38f7d0a8840a71f100f1f52fa43aa5aac @btm btm committed Jul 18, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 chef/spec/unit/application/knife_spec.rb
@@ -18,12 +18,15 @@
require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper"))
require "#{CHEF_SPEC_DATA}/knife_subcommand/test_yourself"
-class NoopKnifeCommand < Chef::Knife
- def run
- end
-end
describe Chef::Application::Knife do
+ before(:all) do
+ class NoopKnifeCommand < Chef::Knife
+ def run
+ end
+ end
+ end
+
before(:each) do
@knife = Chef::Application::Knife.new
@knife.stub!(:puts)

0 comments on commit aee18dd

Please sign in to comment.