Sha256: 904efa36588f16c63212fd4a95cfdd5d3b963a3f59cbe2c2c855472571e58990
Contents?: true
Size: 840 Bytes
Versions: 10
Compression:
Stored size: 840 Bytes
Contents
require_relative '../../lib/reek/smells' require_relative '../../lib/reek/smells/smell_detector' require_relative '../../lib/reek/smells/smell_warning' FactoryGirl.define do factory :smell_detector, class: Reek::Smells::SmellDetector do skip_create transient do smell_type 'FeatureEnvy' end source 'dummy_file' initialize_with do ::Reek::Smells.const_get(smell_type).new(source) end end factory :smell_warning, class: Reek::Smells::SmellWarning do skip_create smell_detector context 'self' lines [42] message 'smell warning message' parameters { {} } initialize_with do new(smell_detector, context: context, lines: lines, message: message, parameters: parameters) end end end
Version data entries
10 entries across 10 versions & 1 rubygems