Class: Autotest::Rails
- Inherits:
-
Object
- Object
- Autotest::Rails
- Defined in:
- lib/simply_authorized/autotest.rb
Instance Method Summary collapse
-
#run_with_simply_authorized ⇒ Object
Need both the mapping and the extra files.
Instance Method Details
#run_with_simply_authorized ⇒ Object
Need both the mapping and the extra files
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/simply_authorized/autotest.rb', line 6 def add_exception %r%config/% add_exception %r%versions/% add_exception %r%\.git/% self.extra_files << File.(File.join( File.dirname(__FILE__),'/../../test/unit/authorized/')) # self.extra_files << File.expand_path(File.join( # File.dirname(__FILE__),'/../../test/functional/authorized/')) # # add_mapping( # %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/authorized/.*_test\.rb$} # ) do |filename, _| # filename # end add_mapping( %r{^#{File.(File.join(File.dirname(__FILE__),'/../../test/'))}/unit/authorized/.*_test\.rb$} ) do |filename, _| filename end end |