.autotest in netsuite-0.0.2 vs .autotest in netsuite-0.0.3
- old
+ new
@@ -1,10 +1,9 @@
Autotest.add_hook :initialize do |at|
at.clear_mappings
- at.add_mapping %r%/^lib/(.*)\.rb$% do |_, m|
- possible = File.basename(m[1])
- files_matching %r%^spec/.*(#{possible}_spec)\.rb$%
+ at.add_mapping(%r%^lib/(.*)\.rb$%) do |_, m|
+ at.files_matching %r%^spec/#{m[1]}_spec\.rb$%
end
- at.add_mapping(%r%^spec/.*\_spec.rb$%) {|filename, _| filename }
+ at.add_mapping(%r%^spec/.*\_spec\.rb$%) { |filename, _| filename }
end