diff options
Diffstat (limited to 'spec/ruby/library/yaml/tagurize_spec.rb')
-rw-r--r-- | spec/ruby/library/yaml/tagurize_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/library/yaml/tagurize_spec.rb b/spec/ruby/library/yaml/tagurize_spec.rb new file mode 100644 index 0000000000..f6025cbea3 --- /dev/null +++ b/spec/ruby/library/yaml/tagurize_spec.rb @@ -0,0 +1,11 @@ +require File.expand_path('../../../spec_helper', __FILE__) +require File.expand_path('../fixtures/common', __FILE__) + +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 |