Sha256: 7e4e5302b7b38183ae2061eec6b8d6f35f4ae27041688314724a63c74ba9ce95
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
Feature: Use reek_of matcher As a developer In order to check code quality as part of my spec suite I want to assert that my code doesn't smell Background: Given the smelly file 'smelly.rb' And a file "reek_spec.rb" with: """ require 'reek/spec' describe 'smelly.rb' do it 'is clean' do expect(Pathname.new('smelly.rb')).not_to reek end end """ Scenario: Failing on a smelly file When I run `rspec reek_spec.rb` Then stdout should contain: """ Failure/Error: expect(Pathname.new('smelly.rb')).not_to reek """ Scenario: Masking smells with a configuration file Given a configuration file 'full_mask.reek' When I run `rspec reek_spec.rb` Then stdout should contain: """ 1 example, 0 failures """
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reek-4.8.2 | features/rspec_matcher.feature |
reek-4.8.1 | features/rspec_matcher.feature |
reek-4.8.0 | features/rspec_matcher.feature |
reek-4.7.3 | features/rspec_matcher.feature |