Sha256: 8700496841bb25d65a635a0987f47527c8db867cda770852c47b604c152c1ad1

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

require 'test_helper'

module Dkim
  class TagValueListTest < Minitest::Test
    def test_replacement
      @list = TagValueList.new

      @list['a'] = '1'
      @list['b'] = '2'
      @list['c'] = '3'
      assert_equal 'a=1; b=2; c=3', @list.to_s

      @list['b'] = '4'
      assert_equal 'a=1; b=4; c=3', @list.to_s
    end
    def test_correct_format
      @list = TagValueList.new

      @list['b'] = '2'
      @list['a'] = '1'
      @list['c'] = '!@#$%^'

      assert_equal 'b=2; a=1; c=!@#$%^', @list.to_s
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dkim-1.1.0 test/dkim/tag_value_list_test.rb
dkim-1.0.1 test/dkim/tag_value_list_test.rb