diff options
Diffstat (limited to 'spec/ruby/library/date/parse_spec.rb')
-rw-r--r-- | spec/ruby/library/date/parse_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/library/date/parse_spec.rb b/spec/ruby/library/date/parse_spec.rb index 379847a6fd..2e800f9818 100644 --- a/spec/ruby/library/date/parse_spec.rb +++ b/spec/ruby/library/date/parse_spec.rb @@ -11,9 +11,11 @@ describe "Date#parse" do d.should == Date.commercial(d.cwyear, d.cweek, 5) end - it "parses a month name into a Date object" do - d = Date.parse("october") - d.should == Date.civil(Date.today.year, 10) + ruby_version_is ''...'2.7' do + it "parses a month name into a Date object" do + d = Date.parse("october") + d.should == Date.civil(Date.today.year, 10) + end end it "parses a month day into a Date object" do |