Webrat Steps extension (Be more DRY)

Recently when I was working with Cucumber and Webrat, I found default webrat definition very interesting. Even in some case I didn’t even had to write a single step definition. But while proceeding I found that something is missing from webrat definition. So I decided to extend it. And come up with some methods defined as below. To use them just download this file and put it under features/step_definitions/ You can copy below code clipboard.

Now you can use above listed methods easily and I assure you that if you use them properly you do not have to write a single step definition. Their uses can be found against USE in the downloaded file. “Use the Rails the way Rails is”

Happy Boarding :)