rails g integration_test name
将spec保存在spec / requests文件夹中.
示例用法:
rails g rspec:integration events --> create spec/requests/events_spec.rb