1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

TimeWithZone#sunday?, monday?, tuesday?, ... are public methods

This commit is contained in:
Akira Matsuda 2020-10-02 15:12:12 +09:00
parent 0977da9b9b
commit 034d6514e0

View file

@ -677,7 +677,7 @@ class TimeWithZoneTest < ActiveSupport::TestCase
def test_ruby_19_weekday_name_query_methods
%w(sunday? monday? tuesday? wednesday? thursday? friday? saturday?).each do |name|
assert_respond_to @twz, name
assert_equal @twz.send(name), @twz.method(name).call
assert_equal @twz.public_send(name), @twz.method(name).call
end
end