bin/sb in starting_blocks-0.0.17 vs bin/sb in starting_blocks-0.0.18
- old
+ new
@@ -10,14 +10,16 @@
if ARGV.include? '--verbose'
options[:verbose] = true
end
def run_all_specs options
- specs = Dir['**/*_spec.rb*'].
- select { |f| File.file?(f) }.
- map { |x| File.expand_path(x) }
+ files = ['**/*_spec.rb*', '**/*_test.rb*', '**/test_*.rb*'].map do |d|
+ Dir[d].
+ select { |f| File.file?(f) }.
+ map { |x| File.expand_path(x) }
+ end.flatten
- StartingBlocks::Runner.new(options).run_files specs
+ StartingBlocks::Runner.new(options).run_files files
end
if ARGV.include? '--watch'
StartingBlocks::Watcher.start_watching Dir, options
else