summaryrefslogtreecommitdiff
path: root/spec/ruby/library/yaml/tagurize_spec.rb
blob: cc1b757ce9e0d3a6c0973c9e1a228afd64851f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'
require_relative 'fixtures/common'

ruby_version_is ''...'2.5' do
  describe "YAML.tagurize" do
    it "converts a type_id to a taguri" do
      YAML.tagurize('wtf').should == "tag:yaml.org,2002:wtf"
      YAML.tagurize(1).should == 1
    end
  end
end