diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-09-02 12:52:40 -0500 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-09-02 12:52:40 -0500 |
commit | 737b2193cf61a676573571f3e307a13448c6109e (patch) | |
tree | bb854833ea5202c14bc97689c9a373bfae9049d6 | |
parent | c3aaa5bfcc335eb502272bd1d972b065e136bfed (diff) | |
download | chef-jdm/bundle-exec.tar.gz |
Guard rspec rakejdm/bundle-exec
-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 - |