diff options
-rw-r--r-- | chef-config/Rakefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chef-config/Rakefile b/chef-config/Rakefile index 36e7e2572d..9a079afbe9 100644 --- a/chef-config/Rakefile +++ b/chef-config/Rakefile @@ -1,4 +1,3 @@ -require 'rspec/core/rake_task' require 'chef-config/package_task' ChefConfig::PackageTask.new(File.expand_path('..', __FILE__), 'ChefConfig') do |package| @@ -7,8 +6,11 @@ end task :default => :spec -desc "Run standard specs" -RSpec::Core::RakeTask.new(:spec) do |t| - t.pattern = FileList['spec/**/*_spec.rb'] +begin + require 'rspec/core/rake_task' + desc "Run standard specs" + RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = FileList['spec/**/*_spec.rb'] + end +rescue LoadError end - |