Basic RSpec for Rails Views
Here’s some introductory material for using RSpec to test your views.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Here’s some introductory material for using RSpec to test your views.
Comments
Why would you test your views with rspec if you could use cucumber+webrat/capybara??
Keep up the good work. Your posts are showing you are keeping up well with the Rails ecosystem.
Take care, cs
Thanks for the great post. Like dkln however, I am not convinced about the usefulness of testing views if you already do acceptance/integration testing with cucumber/steak and capybara/webrat.
Currently I skip functional and view tests in all my rails projects as I believe Unit and acceptance testing can cover pretty much everything.
The same here. After all the whistles I went back to test units with shoulda. No rspec and cukes just barebones testing
Post a comment