Class: Retest::Command::Ruby
Instance Method Summary collapse
Methods inherited from Base
#clone, #has_changed?, #has_test?, #initialize
Constructor Details
This class inherits a constructor from Retest::Command::Base
Instance Method Details
#format_batch(*files) ⇒ Object
12 13 14 |
# File 'lib/retest/command/ruby.rb', line 12 def format_batch(*files) files.size > 1 ? %Q{-e "#{files.map { |file| "require './#{file}';" }.join}"} : files.first end |
#to_s ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/retest/command/ruby.rb', line 4 def to_s if file_system.exist? 'Gemfile.lock' 'bundle exec ruby <test>' else 'ruby <test>' end end |