class StartingBlocks::MinitestContract
Public Instance Methods
execute_these_files(files)
click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 52 def execute_these_files files requires = files.map { |x| "require '#{x}'" }.join("\n") command = if options[:use_bundler] "bundle exec ruby -e \"#{requires}\"" else "ruby -e \"#{requires}\"" end Bash.run command end
extensions()
click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 44 def extensions ['.rb'] end
file_clues()
click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 40 def file_clues ["_test", "test_", "_spec"] end
filter_these_files(files)
click to toggle source
# File lib/starting_blocks/minitest_contract.rb, line 48 def filter_these_files files files.select { |x| options[:include_vendor] || x.include?('/vendor/') == false } end