Sha256: fb46526b9b5a1ffb7dd413742d2bc03273f4be822a6bed9047e45201cb96f511
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
# danger-spec_postfix Danger plugin to validate files (or directories) naming. ## Installation $ gem install danger-spec_postfix ## Example of usage Add to your Dangerfile: options = { message: 'Tests should have `_spec` postfix', scope: %r{spec/}, match: %r{_spec.rb$} } spec_postfix.lint(options) You can also pass `exceptions` param in order to skip irrelevant files or directories: options = { message: 'Tests should have `_spec` postfix', scope: %r{spec/}, match: %r{_spec.rb$} exception: Regexp.union(%r{rails_helper.rb}, %r{rails_helper.rb}, %{spec/factories/}, %r{spec/support/}) } spec_postfix.lint(options) ## Development 1. Clone this repo 2. Run `bundle install` to setup dependencies. 3. Run `bundle exec rake spec` to run the tests. 4. Use `bundle exec guard` to automatically have tests run as you make changes. 5. Make your changes.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danger-spec_postfix-0.0.5 | README.md |