Class: BareMinimumChecks::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/bare_minimum_checks/project.rb

Instance Method Summary collapse

Instance Method Details

#run_specsObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/bare_minimum_checks/project.rb', line 6

def run_specs
  specs = local_changes.reduce([]) do |specs, file_path|
    arr = specs.concat FileNameStyle.camel_case.get_test_file_name(file_path)
    arr.concat FileNameStyle.snake_case.get_test_file_name(file_path)
  end
  specs.each do |spec_file|
    puts "Running #{spec_file}"
    system("rspec #{spec_file}")

  end
end