Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove ruby version check which is now unnecessary

  • Loading branch information...
commit 17b239f7e1d7eb3b6b93683a0dd05c214bde167a 1 parent 222228e
@adzap authored
Showing with 2 additions and 9 deletions.
  1. +2 −9 activesupport/test/core_ext/time_ext_test.rb
View
11 activesupport/test/core_ext/time_ext_test.rb
@@ -587,15 +587,8 @@ def test_to_datetime
assert_equal ::Date::ITALY, Time.utc(2005, 2, 21, 17, 44, 30).to_datetime.start # use Ruby's default start value
end
- if RUBY_VERSION < '1.9'
- def test_to_time
- time = Time.local(2005, 2, 21, 17, 44, 30)
- assert time.equal?(time.to_time)
- end
- else
- def test_to_time
- assert_equal Time.local(2005, 2, 21, 17, 44, 30), Time.local(2005, 2, 21, 17, 44, 30).to_time
- end
+ def test_to_time
+ assert_equal Time.local(2005, 2, 21, 17, 44, 30).to_time, Time.local(2005, 2, 21, 17, 44, 30)
end
# NOTE: this test seems to fail (changeset 1958) only on certain platforms,
Please sign in to comment.
Something went wrong with that request. Please try again.