aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/time_with_zone_test.rb
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-05-05 02:42:48 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-05-05 02:45:04 -0400
commit14762dc5effbc7bb9ae94cb5af895a9a33512867 (patch)
treed983ed475af7d5ae25311231176da58df6d54faf /activesupport/test/core_ext/time_with_zone_test.rb
parent9bda37474e2cd3db63102f6b63246ebc54011ad2 (diff)
downloadrails-14762dc5effbc7bb9ae94cb5af895a9a33512867.tar.gz
rails-14762dc5effbc7bb9ae94cb5af895a9a33512867.tar.bz2
rails-14762dc5effbc7bb9ae94cb5af895a9a33512867.zip
Use respond_to_missing for TimeWithZone
Diffstat (limited to 'activesupport/test/core_ext/time_with_zone_test.rb')
-rw-r--r--activesupport/test/core_ext/time_with_zone_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb
index 7cf3842a16..00a03de875 100644
--- a/activesupport/test/core_ext/time_with_zone_test.rb
+++ b/activesupport/test/core_ext/time_with_zone_test.rb
@@ -450,6 +450,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
end
end