Rspec testing for oauth provider
问题 I'm writing a API that's also an OAuth provider. Is there any recommended way to write your rspec tests? After you enable oauth to protect all of your endpoints, how do you write rspec tests that will pass the authentication step? 回答1: If you are using the oauth and oauth-plugin gems, this post might help you: http://peachshake.com/2010/11/11/oauth-capybara-rspec-headers-and-a-lot-of-pain/ Yet, the oauth-plugin gem generates some specs which include a helper to help you simulate the