Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Forked from kamilio/rspec.rake
Last active September 18, 2015 13:11
Show Gist options
  • Save xarimanx/adea3e99e49906441284 to your computer and use it in GitHub Desktop.
Save xarimanx/adea3e99e49906441284 to your computer and use it in GitHub Desktop.
RSpec::Core::RakeTask.module_eval do
def pattern
dir = EngineName.root # replace with you the name of your engine
extras = []
if File.directory?( dir )
extras << File.join( dir, 'spec', '**', '*_spec.rb' ).to_s
end
[@pattern] | extras
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment