test/signore/signature_test.rb in signore-0.3.3 vs test/signore/signature_test.rb in signore-0.4.0

- old
+ new

@@ -25,22 +25,9 @@ new.must_equal Signature.new(author: nil, source: nil, subject: nil, tags: nil, text: nil) end end - describe '#tagged_with?' do - it 'says whether a tagged signature is tagged with a given tag' do - sig = Signature.new(tags: %w(programming tech), text: '') - refute sig.tagged_with?('fnord') - assert sig.tagged_with?('programming') - assert sig.tagged_with?('tech') - end - - it 'says that an untagged signature is not tagged with any tag' do - refute Signature.new.tagged_with?('fnord') - end - end - describe '#to_h' do it 'returns a String-keyed Hash representation of the Signature' do text = 'For the sake of topic titles, I’d rather if Monty saved Python.' sig = Signature.new(author: 'Anonymous Coward', source: '/.', subject: 'on ‘Monty Wants to Save MySQL’',