summaryrefslogtreecommitdiff
path: root/test/test_psych.rb
blob: dbf892a1e2fa40248ba29681dbde759cf000dfe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'helper'

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

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