lib/retest/command/rake.rb in retest-1.1.0 vs lib/retest/command/rake.rb in retest-1.2.0

- old
+ new

@@ -1,20 +1,20 @@ module Retest class Command - Rake = Struct.new(:all, :bin_file) do - def self.command(all:, bin_file: File.exist?('bin/rake')) - new(all, bin_file).command + Rake = Struct.new(:all, :file_system) do + def self.command(all:, file_system: FileSystem) + new(all, file_system).command end def command return "#{root_command} TEST=<test>" unless all root_command end private def root_command - return 'bin/rake test' if bin_file + return 'bin/rake test' if file_system.exist? 'bin/rake' 'bundle exec rake test' end end end \ No newline at end of file