blog.robotex.de

rspec2: generate scaffolds with webrat

When generating a rails scaffold, rspec2 normally does not use webrat. To generate a scaffold with webrat tested views, use the --webrat flag like this:

$> rails g scaffold Event name:string location:string begin_at:timestamp end_at:timestamp link:string description:text --webrat

Back