RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

mfpiccolo — 2 posts

I like how VCR jives with Rspec for recording and replaying HTTP requests in your test suite. Specifically how you can pass a :vcr symbol to a describe or it block and it will handle the cassette naming and file structure automatically. However, in most cases I use Minitest.

Cut a gem that gives Minitest with VCR that functionality here:
minitest-vcr
Rolling your own integration with an external service where the schema can change from moment to moment can be tough.

I was building an app that relied on salesforce data from multiple salesforce accounts. Not only did we know nothing about the data as we pull it in from the external service, salesforce data structure can be changed at any moment by the users! That scares the hell out of us Rails developers who are used to using structured databases.

I came up with a solution that creates pliable active record objects by using JSON data store in Postgresql.

I extracted this out into a gem called pliable