Sha256: 4502b843af313962dc77e98842e8cdd31d508d1abc621dc647d8325c981ca72f
Contents?: true
Size: 936 Bytes
Versions: 2
Compression:
Stored size: 936 Bytes
Contents
require 'reek/spec' require 'reek/source/ast_node_class_map' require 'matchers/smell_of_matcher' require 'factory_girl' begin require 'pry' require 'byebug' rescue LoadError # rubocop:disable Lint/HandleExceptions end FactoryGirl.find_definitions SAMPLES_DIR = 'spec/samples' # :reek:UncommunicativeMethodName def s(type, *children) @klass_map ||= Reek::Source::AstNodeClassMap.new @klass_map.klass_for(type).new(type, children) end def ast(*args) s(*args) end # Simple helpers for our specs. module Helpers def with_test_config(path) Configuration::AppConfiguration.load_from_file(path) yield if block_given? Configuration::AppConfiguration.reset end end # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.filter_run :focus config.run_all_when_everything_filtered = true config.include FactoryGirl::Syntax::Methods config.include Helpers end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.6.1 | spec/spec_helper.rb |
reek-1.6.0 | spec/spec_helper.rb |