rspec2: generate scaffolds with webrat

Mittwoch, 29. Juni 2011, 13:53 Uhr | roberto@vasquez-angel.de |

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