18F / dolores-landingham-slack-bot

A Slack bot to welcome new 18F hires with the authority and compassion of Mrs. Landingham
https://18f.gsa.gov/2015/12/15/how-bot-named-dolores-landingham-transformed-18fs-onboarding/
Other
189 stars 66 forks source link

Silence time zone deprecation warning #228

Open jessieay opened 8 years ago

jessieay commented 8 years ago

seeing this in Travis;

DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
    config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
    config.active_record.time_zone_aware_types = [:datetime, :time]
 (called from _app_views_scheduled_messages_index_html_erb___3955218739433732987_29240280 at /home/travis/build/18F/dolores-landingham-slack-bot/app/views/scheduled_messages/index.html.erb:29)
.You're running an old version of PhantomJS, update to >= 2.1.1 for a better experience.
DEPRECATION WARNING: Time columns will become time zone aware in Rails 5.1. This
still causes `String`s to be parsed as if they were in `Time.zone`,
and `Time`s to be converted to `Time.zone`.
To keep the old behavior, you must add the following to your initializer:
    config.active_record.time_zone_aware_types = [:datetime]
To silence this deprecation warning, add the following:
    config.active_record.time_zone_aware_types = [:datetime, :time]
 (called from quarterly_message_not_already_sent? at /home/travis/build/18F/dolores-landingham-slack-bot/app/services/quarterly_message_employee_matcher.rb:35)
.DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
 (called from block (3 levels) in <top (required)> at /home/travis/build/18F/dolores-landingham-slack-bot/spec/controllers/send_messages_controller_spec.rb:9)
DEPRECATION WARNING: ActionController::TestCase HTTP request methods will accept only
keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
 (called from block (3 levels) in <top (required)> at /home/travis/build/18F/dolores-landingham-slack-bot/spec/controllers/send_messages_controller_spec.rb:9)