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:
parent
0977da9b9b
commit
034d6514e0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue