Sha256: 8927c78c0adb001c0ef048592424cac044d7f56cde705bcb9c6bba4e11c1c3d3
Contents?: true
Size: 983 Bytes
Versions: 17
Compression:
Stored size: 983 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' 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 file named ".reek.yml" with: """ --- detectors: UncommunicativeMethodName: enabled: false UncommunicativeVariableName: enabled: false """ When I run `rspec reek_spec.rb` Then stdout should contain: """ 1 example, 0 failures """
Version data entries
17 entries across 15 versions & 2 rubygems