#gemfile group :test do gem 'rails-controller-testing' end #可以添加如下的方法 assert_template
Integration tests doesn't allow you to set session.
https://stackoverflow.com/questions/44285172/minitest-integrationtest-argumenterror-unknown-keyword-session