File: test_yaml_regressions.rb

package info (click to toggle)
sup-mail 0.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,168 kB
  • sloc: ruby: 12,583; sh: 115; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'test_helper'

# Requiring 'yaml' before 'sup' in 1.9.x would get Psych loaded first
# and becoming the default yamler.
require 'yaml'
require 'sup'

module Redwood
  class TestYamlRegressions < ::Minitest::Test
    def test_yamling_hash
      hsh = {:foo => 42}
      reloaded = YAML.load(hsh.to_yaml)

      assert_equal reloaded, hsh
    end
  end
end