db0sch / drip

Get new part time job proposal everyday (on Messenger)
0 stars 0 forks source link

Testing#IndeedAPI #11

Closed db0sch closed 7 years ago

db0sch commented 8 years ago

Write test for IndeedApi with different situation :

db0sch commented 7 years ago

Test private methods : https://stackoverflow.com/questions/4271696/rspec-rails-how-to-test-private-methods-of-controllers

db0sch commented 7 years ago

for api calls => VCR cassettes github : https://github.com/vcr/vcr stackoverflow: https://stackoverflow.com/questions/28951791/using-vcr-with-rspec-in-feature-scenarios

db0sch commented 7 years ago

Thoughtbot resources : https://thoughtbot.com/upcase/videos/testing-interaction-with-3rd-party-apis https://robots.thoughtbot.com/testing-sms-interactions https://robots.thoughtbot.com/faking-apis-in-development-and-staging

db0sch commented 7 years ago

Some articles about Services object : http://brewhouse.io/blog/2014/04/30/gourmet-service-objects.html https://stackoverflow.com/questions/40804634/rspec-require-extra-test-folder-with-pure-ruby https://blog.engineyard.com/2014/keeping-your-rails-controllers-dry-with-services https://www.netguru.co/blog/service-objects-in-rails-will-help https://github.com/rspec/rspec-mocks