Last active
June 23, 2016 13:27
-
-
Save kamilio/5582548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Thanks for posting this. This helped.