diff options
Diffstat (limited to 'tasks/rspec.rb')
-rw-r--r-- | tasks/rspec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tasks/rspec.rb b/tasks/rspec.rb index 4d74fa0951..ff784c833c 100644 --- a/tasks/rspec.rb +++ b/tasks/rspec.rb @@ -17,13 +17,13 @@ # limitations under the License. # -require 'rubygems' -require 'rake' +require "rubygems" +require "rake" CHEF_ROOT = File.join(File.dirname(__FILE__), "..") begin - require 'rspec/core/rake_task' + require "rspec/core/rake_task" desc "Run specs for Chef's Components" @@ -44,13 +44,13 @@ begin RSpec::Core::RakeTask.new(:spec) do |t| # right now this just limits to functional + unit, but could also remove # individual tests marked long-running - t.pattern = FileList['spec/**/*_spec.rb'] + t.pattern = FileList["spec/**/*_spec.rb"] end namespace :spec do desc "Run all specs in spec directory with RCov" RSpec::Core::RakeTask.new(:rcov) do |t| - t.pattern = FileList['spec/**/*_spec.rb'] + t.pattern = FileList["spec/**/*_spec.rb"] t.rcov = true t.rcov_opts = lambda do IO.readlines("#{CHEF_ROOT}/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten @@ -59,19 +59,19 @@ begin desc "Run all specs in spec directory" RSpec::Core::RakeTask.new(:all) do |t| - t.pattern = FileList['spec/**/*_spec.rb'] + t.pattern = FileList["spec/**/*_spec.rb"] end desc "Print Specdoc for all specs" RSpec::Core::RakeTask.new(:doc) do |t| t.rspec_opts = ["--format", "specdoc", "--dry-run"] - t.pattern = FileList['spec/**/*_spec.rb'] + t.pattern = FileList["spec/**/*_spec.rb"] end desc "Run the specs under spec/unit with activesupport loaded" RSpec::Core::RakeTask.new(:activesupport) do |t| t.rspec_opts = ["--require active_support/core_ext"] - t.pattern = FileList['spec/unit/**/*_spec.rb'] + t.pattern = FileList["spec/unit/**/*_spec.rb"] end [:unit, :functional, :integration, :stress].each do |sub| |