Sha256: cf08abedf9bfff99032314079ee676acf09d3932ca99a805ca501f4140413cfa
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 Bytes
Contents
module SnapCI module ParallelTests module RSpec module CLIHelper def render_header(optparser, options) optparser.banner = <<BANNER Usage: #{optparser.program_name} [options] [files or directories] [-- [rspec options]] Example: #{optparser.program_name} spec/models spec/controllers/foo_controller_spec.rb -- --format documentation --fail-fast BANNER end def render_options(optparser, options) optparser.on('-p', '--pattern [PATTERN]', 'run tests matching this pattern') do |pattern| options[:pattern] = /#{pattern}/ end end def render_footer(optparser, options) optparser.separator "\nRun `rspec --help' for supported rspec options." end extend CLIHelper end #CLIHelper end #RSpec end #ParallelTests end #SnapCI
Version data entries
3 entries across 3 versions & 1 rubygems