RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

dnesteryuk — 4 posts

http://nesteryuk.info/

In this article you can find my 5 cents about this subject. There are 5 approaches which may help you. It is not about patterns, but it is about making decisions and architecture of an application. There is one approach which started working well for us.
Do you hate fixtures? I do as well.

VCR is a good library for stubbing HTTP interactions, but it is very difficult to maintain dozen cassettes in the project. If you feel the same and you want spend less time on understanding what is wrong with your cassettes, you may find this article useful. Let me know what your thoughts are about that.
I just finished writing blog post about gem which allow you to use SitePrism and Vcr gems for better testing applications working with external API.
We use OOP to make our code be better, why we don’t care too much about our tests? Nat Ritmeyer created a cool library which provides OOP DSL for Capybara. Its name is SitePrism. I have been using this library for 5 months. As a result, my tests look much much more clear and I feel like I have started writing less code for my acceptance tests, because I can inherit sections, pages and so on. I strongly recommend you to take a look at this library.