Sha256: d77cb1a2a9a77873bfc557d125acea2b5f5ea615dbc62e04155c48e47ab7be36
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
require 'test_helper' require 'rubycritic/core/smell' require 'rubycritic/smells_status_setter' describe RubyCritic::SmellsStatusSetter do describe '::smells' do before do @smell = RubyCritic::Smell.new(context: '#bar') @smells = [@smell] end it 'marks old smells' do RubyCritic::SmellsStatusSetter.set(@smells, @smells) @smell.status.must_equal :old end it 'marks new smells' do RubyCritic::SmellsStatusSetter.set([], @smells) @smell.status.must_equal :new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-2.9.3 | test/lib/rubycritic/smells_status_setter_test.rb |