mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added version guard for backtrace printing feature of psych to ruby/spec.
This commit is contained in:
parent
cfa1a18431
commit
e478671e19
1 changed files with 10 additions and 2 deletions
|
@ -72,8 +72,16 @@ describe "Object#to_yaml" do
|
||||||
true_klass.to_yaml.should match_yaml("--- true\n")
|
true_klass.to_yaml.should match_yaml("--- true\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns the YAML representation of a Error object" do
|
ruby_version_is ""..."2.7" do
|
||||||
StandardError.new("foobar").to_yaml.should match_yaml("--- !ruby/exception:StandardError\nmessage: foobar\nbacktrace: \n")
|
it "returns the YAML representation of a Error object" do
|
||||||
|
StandardError.new("foobar").to_yaml.should match_yaml("--- !ruby/exception:StandardError\nmessage: foobar\n")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
ruby_version_is "2.7" do
|
||||||
|
it "returns the YAML representation of a Error object" do
|
||||||
|
StandardError.new("foobar").to_yaml.should match_yaml("--- !ruby/exception:StandardError\nmessage: foobar\nbacktrace: \n")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns the YAML representation for Range objects" do
|
it "returns the YAML representation for Range objects" do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue