Sha256: 1f07909996b15575743b33784eaaee5434d86dbaf76f4f25e2398bf07d031deb
Contents?: true
Size: 971 Bytes
Versions: 2
Compression:
Stored size: 971 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 :context, class: Reek::Context::CodeContext do skip_create initialize_with do new(nil, nil) end end factory :smell_detector, class: Reek::Smells::SmellDetector do skip_create transient do smell_type 'FeatureEnvy' source 'foo' end initialize_with do ::Reek::Smells.const_get(smell_type).new end end factory :smell_warning, class: Reek::Smells::SmellWarning do skip_create smell_detector context 'self' source 'dummy_file' lines [42] message 'smell warning message' parameters { {} } initialize_with do new(smell_detector, source: source, context: context, lines: lines, message: message, parameters: parameters) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-3.4.1 | spec/factories/factories.rb |
reek-3.4.0 | spec/factories/factories.rb |