From 6c57c78671ef49922643361cfb0a9287986be904 Mon Sep 17 00:00:00 2001 From: lsylvester Date: Fri, 3 Oct 2014 19:53:54 +1000 Subject: define hash on duration --- activesupport/test/core_ext/duration_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb index f4d504914e..5a2af7f943 100644 --- a/activesupport/test/core_ext/duration_test.rb +++ b/activesupport/test/core_ext/duration_test.rb @@ -196,4 +196,8 @@ class DurationTest < ActiveSupport::TestCase assert_respond_to 1.day, :since assert_respond_to 1.day, :zero? end + + def test_hash + assert_equal 1.minute.hash, 60.seconds.hash + end end -- cgit v1.2.3