]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(Maint) Add spec/functions to rake test task
authorJeff McCune <jeff@puppetlabs.com>
Wed, 28 Nov 2012 00:18:07 +0000 (16:18 -0800)
committerJeff McCune <jeff@puppetlabs.com>
Wed, 28 Nov 2012 00:18:07 +0000 (16:18 -0800)
Without this patch the `test` rake task does not exercise the
rspec-puppet behaviors located in spec/functions/  This is a
self-evident problem.

This patch fixes the problem by adding spec/functions to the list of
directories scanned for spec tests.

Rakefile

index 01b2a31ea758150e32696eef141e350aeec208ee..cbe8f283b3e61421301e5fb3d5e5480952b87240 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -5,7 +5,7 @@ task :default => [:test]
 
 desc 'Run RSpec'
 RSpec::Core::RakeTask.new(:test) do |t|
-  t.pattern = 'spec/{unit}/**/*.rb'
+  t.pattern = 'spec/{unit,functions}/**/*.rb'
   t.rspec_opts = ['--color']
 end