Skip to content

Instantly share code, notes, and snippets.

@viktorchukhantsev
Forked from kamilio/rspec.rake
Created March 20, 2016 12:54
Show Gist options
  • Save viktorchukhantsev/e9c69767cadec4509b14 to your computer and use it in GitHub Desktop.
Save viktorchukhantsev/e9c69767cadec4509b14 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