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