lib/soundcheck.rb in soundcheck-0.2.1 vs lib/soundcheck.rb in soundcheck-0.2.2

- old
+ new

@@ -8,26 +8,18 @@ def initialize(path = "spec", options = {}) self.project = Project.new(Dir.pwd) self.path = path self.options = options + + logger.level = Logger::DEBUG if options[:verbose] + logger.debug "Debug logging enabled." end def command_to_run - commands = [] project.frameworks.each do |framework| framework.options = options command = framework.command(*path) - commands << command if command + return command if command end - commands.first - end - - def requires_spec_helper? - `grep -r 'spec_helper' #{@path}` - $?.exitstatus == 0 # matched - end - - def has_gemfile? - File.exist?("Gemfile") end end