diff options
author | lsylvester <lachlan.sylvester@hypothetical.com.au> | 2014-10-03 19:53:54 +1000 |
---|---|---|
committer | lsylvester <lachlan.sylvester@hypothetical.com.au> | 2014-10-03 19:53:54 +1000 |
commit | 6c57c78671ef49922643361cfb0a9287986be904 (patch) | |
tree | 1acdaf78dc69bc92c3843c353708e3f3f409203a /activesupport/test/core_ext | |
parent | de50a91daad90bf2a0e6bece60a1c2211ade4682 (diff) | |
download | rails-6c57c78671ef49922643361cfb0a9287986be904.tar.gz rails-6c57c78671ef49922643361cfb0a9287986be904.tar.bz2 rails-6c57c78671ef49922643361cfb0a9287986be904.zip |
define hash on duration
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/duration_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |