Class: DuckTest::DefaultConfig
- Inherits:
-
Object
- Object
- DuckTest::DefaultConfig
- Defined in:
- lib/duck_test/default_config.rb
Class Method Summary (collapse)
-
+ (Object) config(target)
Runs a default configuration for a target testing framework.
Class Method Details
+ (Object) config(target)
Runs a default configuration for a target testing framework.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/duck_test/default_config.rb', line 7 def self.config(target) puts "Autoloading configuration for framework: #{target}" case target when :testunit DuckTest.config do excluded [/.gitkeep$/, /kate-swp$/, /.yml$/, /test_helper/, /^.goutputstream/] excluded_dirs [/^assets/, /^fixtures/] watch_basedir :app runnable "**/*" watch "**/*" do standard_maps end end when :rspec DuckTest.config do excluded [/.gitkeep$/, /kate-swp$/, /.yml$/, /spec_helper/, /^.goutputstream/] excluded_dirs [/^assets/, /^fixtures/] runnable_basedir :spec watch_basedir :app runnable "**/*" watch "**/*" do standard_maps end end end end |