diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-20 11:42:21 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-20 11:42:21 -0300 |
commit | 4f700edcc094406155785c693363801d0277792c (patch) | |
tree | bbe0186dc87c3039abd13d59c39f8eee8bba14b1 /railties/test/application/rack/logger_test.rb | |
parent | 265f13495fb326bd2e6a5bc9cae7e297e42893d0 (diff) | |
parent | 2773257ac64c82affae527436b08e6d627853c1d (diff) | |
download | rails-4f700edcc094406155785c693363801d0277792c.tar.gz rails-4f700edcc094406155785c693363801d0277792c.tar.bz2 rails-4f700edcc094406155785c693363801d0277792c.zip |
Merge pull request #6402 from paranoiase/prev-and-next-quarter
Add prev_quarter and next_quarter methods in Time/Date/DateTime calculations.
Similar to prev_month and next_month, it returns the date with the same day
in the previous or next quarter:
t = Time.local(2010, 5, 8) # => Sat, 08 May 2010
t.prev_quarter # => Mon, 08 Feb 2010
t.next_quarter # => Sun, 08 Aug 2010
Closes #6402
Diffstat (limited to 'railties/test/application/rack/logger_test.rb')
-rw-r--r-- | railties/test/application/rack/logger_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/rack/logger_test.rb b/railties/test/application/rack/logger_test.rb index a77c6f472c..46fd09cb26 100644 --- a/railties/test/application/rack/logger_test.rb +++ b/railties/test/application/rack/logger_test.rb @@ -5,6 +5,7 @@ require "rack/test" module ApplicationTests module RackTests class LoggerTest < ActiveSupport::TestCase + include ActiveSupport::Testing::Isolation include ActiveSupport::LogSubscriber::TestHelper include Rack::Test::Methods @@ -17,6 +18,7 @@ module ApplicationTests end def teardown + super teardown_app end |