RT http://apidock.com/rails/ActiveResource/HttpMock
用這個可以自動捕捉和紀錄 http request & request
https://www.relishapp.com/vcr/vcr/v/1-6-0/docs/test-frameworks/usage-with-rspec
看看源码,看样子是的
https://github.com/rails/rails/blob/v3.2.15/activeresource/test/cases/authorization_test.rb
#2 楼 @zhangyuan 果然是矮