Sha256: 1cfb560fc5b4ca25b0d85febeaff67a829c5ad7b2bd72509445bdbc9d5a378e5
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
require 'pre-commit/checks/grep' module PreCommit module Checks class RspecFocus < Grep def files_filter(staged_files) staged_files.grep(/_spec\.rb$/) end def message "focus found in specs:" end def pattern "(describe|context|it).*(:focus|focus:).*do" end def extra_pattern "(fdescribe|fcontext|fit).*(\"|').*(\"|').*do" end def self.description "Finds ruby specs that are focused." end end end end
Version data entries
6 entries across 6 versions & 1 rubygems