We should fix the deprecation warnings in Rails 5.
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from block in <module:Controller> at /Users/dante/Sites/devise_openid_authenticatable/lib/devise_openid_authenticatable/controller.rb:6)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/spec_helper.rb:7)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/spec_helper.rb:7)
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
class CreateTables < ActiveRecord::Migration[4.2] (called from <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/support/migrations.rb:4)
DEPRECATION WARNING: use_transactional_fixtures= is deprecated and will be removed from Rails 5.1 (use use_transactional_tests= instead) (called from <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/model_spec.rb:3)
DEPRECATION WARNING: use_transactional_fixtures= is deprecated and will be removed from Rails 5.1 (use use_transactional_tests= instead) (called from <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/strategy_spec.rb:3)
.DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <class:ApplicationController> at /Users/dante/Sites/devise_openid_authenticatable/spec/scenario/app/controllers/application_controller.rb:3)
...DEPRECATION WARNING: ActionDispatch::IntegrationTest HTTP request methods will accept only
the following keyword arguments in future Rails versions:
params, headers, env, xhr, as
Examples:
get '/profile',
params: { id: 1 },
headers: { 'X-Extra-Header' => '123' },
env: { 'action_dispatch.custom' => 'custom' },
xhr: true,
as: :json
(called from block (3 levels) in <top (required)> at /Users/dante/Sites/devise_openid_authenticatable/spec/strategy_spec.rb:88)
.DEPRECATION WARNING: ActionDispatch::IntegrationTest HTTP request methods will accept only
the following keyword arguments in future Rails versions:
params, headers, env, xhr, as
and in lib/devise_openid_authenticable/controller.rb:15 change !!env to !!request.env
We should fix the deprecation warnings in Rails 5.
and in
lib/devise_openid_authenticable/controller.rb:15change!!envto!!request.env