INCLUDE_DATA

Quick Testing Tips Your daily feed of short software testing tips…

28Oct/10Off

Rspec and Generators

A fantastic tip posted by Catherine Powell on Rspec and Generators a couple days ago:

When working in Rails, I use the generators as easy ways to create models with migrations, and whatnot. I got used to running my generators with "--rspec" since that's the test framework I'm using currently.

I can save myself some time by adding this to my application.rb:

config.generators do |g|
g.test_framework :rspec
end
Posted By Michael Kelly
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.

Categories

Authors

Pages

 Quick Testing Tips proudly uses PHP Speedy