- nkf
- csb gem
- Error
DEPRECATION WARNING: The success? predicate is deprecated and will be removed in Rails 6.0. Please use successful?
- Sample code
# deprecated
expect(response).to be_success
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
set view.locale
view.locale = :ja
- rspec-rails/lib/rspec/rails/example/view_example_group.rb
- rails/actionview/lib/action_view/rendering.rb
NewerOlder