#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + '/../lib/starting_blocks.rb') options = {} def display value end 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) } StartingBlocks::Runner.new(options).run_files specs end if ARGV.include? '--watch' StartingBlocks::Watcher.start_watching Dir, options else run_all_specs options end