Sha256: ac40f316cf517fb11d46520dadf0bd3d44870348cf2fe06fa4ec3794c7961dc6

Contents?: true

Size: 924 Bytes

Versions: 5

Compression:

Stored size: 924 Bytes

Contents

Given(/^a directory 'lib' with one clean file 'clean\.rb' and one dirty file 'dirty\.rb'$/) do
  write_file('lib/clean.rb', <<-EOS.strip_heredoc)
    # clean class for testing purposes
    class Clean
      def super_clean
        puts @janitor.name
      end
    end
  EOS

  write_file('lib/dirty.rb', <<-EOS.strip_heredoc)
    class Dirty
      def a; end
      def b; end
    end
  EOS
end

Given(/^a configuration file 'config\.reek' that partially masks 'dirty\.rb'$/) do
  write_file('config.reek', <<-EOS.strip_heredoc)
    ---
    IrresponsibleModule:
      exclude:
      - Dirty
    UncommunicativeMethodName:
      exclude:
      - Dirty#b
  EOS
end

Given(/^a directory 'superclean' with one clean file 'clean\.rb'$/) do
  write_file('superclean/clean.rb', <<-EOS.strip_heredoc)
    # clean class for testing purposes
    class Clean
      def super_clean
        puts @janitor.name
      end
    end
  EOS
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reek-4.0.2 features/step_definitions/todo_list_steps.rb
reek-4.0.1 features/step_definitions/todo_list_steps.rb
reek-4.0.0 features/step_definitions/todo_list_steps.rb
reek-4.0.0.pre1 features/step_definitions/todo_list_steps.rb
reek-3.11 features/step_definitions/todo_list_steps.rb