Class: Autotest::Rails

Inherits:
Object
  • Object
show all
Defined in:
lib/calnet_authenticated/autotest.rb

Instance Method Summary collapse

Instance Method Details

#run_with_calnet_authenticatedObject

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
# File 'lib/calnet_authenticated/autotest.rb', line 6

def run_with_calnet_authenticated
	add_exception %r%config/%
	add_exception %r%versions/%
	add_exception %r%\.git/%
	self.extra_files << File.expand_path(File.join(
			File.dirname(__FILE__),'/../../test/unit/calnet_authenticated/'))

	self.extra_files << File.expand_path(File.join(
			File.dirname(__FILE__),'/../../test/functional/calnet_authenticated/'))

	add_mapping( 
		%r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/calnet_authenticated/.*_test\.rb$}
		) do |filename, _|
		filename
	end
	run_without_calnet_authenticated
end