summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile2
-rw-r--r--chef/spec/unit/application_spec.rb6
2 files changed, 8 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 01669283c5..2ec42b7bd3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -30,6 +30,8 @@ task :spec do
end
end
+task :default => :spec
+
def start_dev_environment(type="normal")
@couchdb_server_pid = nil
@chef_server_pid = nil
diff --git a/chef/spec/unit/application_spec.rb b/chef/spec/unit/application_spec.rb
index 30d9163157..b0408e8c75 100644
--- a/chef/spec/unit/application_spec.rb
+++ b/chef/spec/unit/application_spec.rb
@@ -31,6 +31,9 @@ end
describe Chef::Application, "reconfigure" do
before do
@app = Chef::Application.new
+ @app.stub!(:configure_opt_parser).and_return(true)
+ @app.stub!(:configure_chef).and_return(true)
+ @app.stub!(:configure_logging).and_return(true)
end
it "should configure the options parser" do
@@ -59,6 +62,9 @@ describe Chef::Application do
before do
@app.stub!(:setup_application).and_return(true)
@app.stub!(:run_application).and_return(true)
+ @app.stub!(:configure_opt_parser).and_return(true)
+ @app.stub!(:configure_chef).and_return(true)
+ @app.stub!(:configure_logging).and_return(true)
end
it "should reconfigure the application before running" do