Class: CIHelper::Commands::CheckSpecSuffixes
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- CIHelper::Commands::CheckSpecSuffixes
- Defined in:
- lib/ci_helper/commands/check_spec_suffixes.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
call!, #execute, #execute_with_env, #initialize, process_stdout
Constructor Details
This class inherits a constructor from CIHelper::Commands::BaseCommand
Instance Method Details
#call ⇒ Object
6 7 8 9 10 |
# File 'lib/ci_helper/commands/check_spec_suffixes.rb', line 6 def call paths = target_paths.reject { |path| path.end_with?("_spec.rb") } fail!("Detected specs without _spec suffix: #{paths.join(" ")}") if paths.any? 0 end |