Seb, I actually *just* came by a very similar issue myself. The examples at http://murphyslaw.github.io/blog/2012/04/06/run-specs-excluding-integration-specs/ should help you.
-Jason On Wed, Aug 13, 2014 at 8:42 AM, Jason Antman <[email protected]> wrote: > Seb, > > You really shouldn't be running specs for dependent modules. > > (1) If I were you, I'd really use the spec helper, and garethr's module > skeleton - https://github.com/garethr/puppet-module-skeleton > (2) looking at your code, you should just be able to > t.pattern = 'spec/(classes|defines)/*_spec.rb' > > -Jason > > > On Tue, Aug 12, 2014 at 2:47 PM, Sebastian Otaegui <[email protected]> > wrote: > >> Hello all, >> >> I have created this module: >> >> https://github.com/Spantree/puppet-thrift and everything worked fine all >> specs ran fine. >> >> Now I using the puppetlabs/apt module and when I run the 'rake spec' it >> is trying to run the 'apt' tests, and it is failing (I think) because I am >> not providing the appropriate facts. >> >> Is there a way to ignore the rspecs inside the fixtures/modules/ >> directory? >> >> I tried to do this: >> >> require 'rake'require 'rspec/core/rake_task' >> >> RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/*/*_spec.rb'end >> >> >> >> But it didn't work. >> >> Can anybody point me in the right direction here? >> >> Thanks in advance, >> Seb >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/1d7b8768-0e72-40c3-97f7-623d08f028ac%40googlegroups.com >> <https://groups.google.com/d/msgid/puppet-users/1d7b8768-0e72-40c3-97f7-623d08f028ac%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAFt4V4mukbYuwbB3iY9pLAJsMNRQE6RGk5VY_yLeC-BKiAv05w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
