Skip to content

Commit

Permalink
Move the extensions for Time to the corresponding locations
Browse files Browse the repository at this point in the history
Although `Time#to_date` and `Time#to_datetime` are defined in `Time`,
they belong to the "date" library and should be placed in the
corresponding locations for each class.

Fix #1146.
  • Loading branch information
nobu committed Apr 4, 2024
1 parent 573cf97 commit d29c935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

require_relative '../../spec_helper'
require_relative '../../../spec_helper'
require 'time'

describe "Time#to_date" do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../../spec_helper'
require_relative '../../../spec_helper'
require 'time'
require 'date'
date_version = defined?(Date::VERSION) ? Date::VERSION : '3.1.0'
Expand Down

0 comments on commit d29c935

Please sign in to comment.