Skip to content

Commit

Permalink
leech off of chefs rspec tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
btm committed Oct 10, 2011
1 parent 73326b5 commit d21b957
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $: << File.dirname(__FILE__)
require 'lib/chef/expander/version'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require '../chef/tasks/rspec.rb'

spec = eval(File.read("chef-expander.gemspec"))

Expand All @@ -46,22 +47,6 @@ task :install => :package do
sh %{gem install pkg/chef-expander-#{Chef::Expander::VERSION} --no-rdoc --no-ri}
end

begin
require 'spec/rake/spectask'

Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
spec.spec_files = FileList['spec/**/*_spec.rb']
end
rescue LoadError
desc "Rspec is not installed. `(sudo) gem install rspec` to run tests"
task :spec do
puts "Rspec is not installed. `(sudo) gem install rspec` to run tests"
exit 1
end
end

desc "install gem dependencies"
task :bundle do
sh("bundle install")
Expand Down

0 comments on commit d21b957

Please sign in to comment.