When cooking a new dish, things get out of control if you try to manage too many things at once You might face a similar situation when trying to write a new Chef cookbook. Getting your arms around all those tools and frameworks needed to write solid, tested cookbooks gets you spinning. You need to … Continue reading Test Driven Chef Cookbooks With Meez
Tag: RSpec
RSpec Tips & Tricks
Throughout the last couple of days, I did a bigger refactoring of our Ruby on Rails application. As I changed quite a few moving parts, I covered everything I did with RSpec. It's really an incredible feeling to have all your bases covered with automated tests when you finally start the manual regression test. Along … Continue reading RSpec Tips & Tricks
Real World Example: Using factory_girl to simplify our test setup
When you do integration testing in a ruby on rails application, you don't want to stub out all involved models. Rails' built in approach of using fixtures is considered to be sub-optimal and the way to go today is to use factories. Homegrown Factories In our application we used to write our own factories, one … Continue reading Real World Example: Using factory_girl to simplify our test setup
webrat: Automated Acceptance Testing with RSpec or Cucumber
Recently, I was looking deeper into how we could add some automated acceptance tests to our Ruby on Rails based website. We're using RSpec since quite a while now for TDD, but doing some high level acceptance tests was not on our agenda so far. DRY Cucumber Scenarios The new cool kid on the block … Continue reading webrat: Automated Acceptance Testing with RSpec or Cucumber