⚠️ This article was posted over 2 years ago. The information might be outdated. ⚠️
Table of Contents
- Test private methods
- Stub ENV variables
- Test API calls
- Mocks Stubs
- Test Application_controller
- Stub request headers
- Test modules
- Test application_record
Test private methods
Stub ENV variables
- ruby - What is the best way to write specs for code that depends on environment variables? - Stack Overflow
- Testing and Environment Variables
Test API calls
Mocks Stubs
Test Application_controller
- How do I test an application_controller on a rails app - Blog do Time
- anonymous controller - Controller specs - RSpec Rails - RSpec - Relish