Tag Archives: factoryGirl

10 ways how to speed your unit tests [Rails, RSpec, Capybara]

#10 Avoid writing to the database Lets take simple example. I have this test: I am testing if Address is valid by passing a Factory with dummy data. When I run this test in console I get this: 0.022777 For … Continue reading

Posted in Rails, Rspec, Ruby | Tagged , , , , , , , , , , , | Leave a comment