Check out VCR: https://github.com/vcr/vcr
Great book: Practical Object-Oriented Design in Ruby: An Agile Primer by Sandi Metz
You'd probably also want to pick up this one: Everyday Rails
Yes, check out bhaviour driven development.
Much saner approach.
The cucumber book should be a good starting point
The Pragmatic Bookshelf | The Cucumber Book
::emp::