summaryrefslogtreecommitdiff
path: root/test/test_psych.rb
blob: 96d0f69653768d317573f3a4d21e2bbfb089849b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'minitest/autorun'
require 'psych'

class TestPsych < MiniTest::Unit::TestCase
  def test_simple
    assert_equal 'foo', Psych.load("--- foo\n")
  end

  def test_libyaml_version
    assert Psych.libyaml_version
    assert_equal Psych.libyaml_version.join('.'), Psych::LIBYAML_VERSION
  end
end