- Rails Guide: Upgrading from Rails 4.2 to Rails 5.0
Gemfile
gem 'rails', '5.0.0.1'
# | |
# Install jq on Raspberry Pi | |
# | |
# jq | |
# - http://stedolan.github.io/jq/ | |
# | |
curl -O http://stedolan.github.io/jq/download/source/jq-1.4.tar.gz | |
tar xfvz jq-1.4.tar.gz | |
cd jq-1.4 |
Gemfile
gem 'rails', '5.0.0.1'
set view.locale
view.locale = :ja
# spec/support/request_macros.rb | |
module RequestMacros | |
def request_login_user | |
before(:each) do | |
@loginuser = FactoryBot.create(:login_user) | |
post user_session_path, params: { user: { email: @loginuser.email, password: @loginuser.password } } | |
follow_redirect! | |
end | |
end | |
end |
DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful?
# deprecated
expect(response).to be_success