Skip to content

Commit

Permalink
Merge pull request #1112 from herwinw/yaml_date_parse
Browse files Browse the repository at this point in the history
Remove dependency on Date.parse from YAML specs
  • Loading branch information
andrykonchin authored Nov 13, 2023
2 parents 71cfe8c + 7f7272f commit bc5f987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/yaml/to_yaml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

it "returns the YAML representation of a Date object" do
require 'date'
Date.parse('1997/12/30').to_yaml.should match_yaml("--- 1997-12-30\n")
Date.new(1997, 12, 30).to_yaml.should match_yaml("--- 1997-12-30\n")
end

it "returns the YAML representation of a FalseClass" do
Expand Down

0 comments on commit bc5f987

Please sign in to comment.