Sha256: 3d82e60e06d283d6a1c54932e303e4650c05b04a801c5ed70b5c11349f9e13e8
Contents?: true
Size: 464 Bytes
Versions: 7
Compression:
Stored size: 464 Bytes
Contents
require File.expand_path('../fixtures/common', __FILE__) describe "YAML#parse with an empty string" do it "returns false" do YAML.parse('').should be_false end end describe "YAML#parse" do before :each do @string_yaml = "foo".to_yaml end it "returns the value from the object" do if YAML.to_s == "Psych" YAML.parse(@string_yaml).to_ruby.should == "foo" else YAML.parse(@string_yaml).value.should == "foo" end end end
Version data entries
7 entries across 7 versions & 1 rubygems