Reputation: 901
Is there any comprehensive guides on testing rails apps. Im searching for guide that will tell me what should I test and how should I test it especially with Rspec. Lots of examples will be appreciated.
Upvotes: 5
Views: 2133
Reputation: 3937
Check out Everyday Rails Testing with RSpec. Sumner does a great job of walking you through writing tests for an entire app. The Hartl book is also a great resource.
Upvotes: 1
Reputation: 3020
Also take a look at Railscast as well.
Some episodes that talks about testing:
Episode 257: Request Specs and Capybara
Episode 158: Factories not Fixtures revised or Older Episode
Episode 261: Testing JavaScript with Jasmine
Upvotes: 3
Reputation: 21791
Testing the rails app is part of development so I'd sugest to read Ruby on Rails Tutorial, Learn Rails by Example by Michael Hartl, it has good explained testing process.
Upvotes: 6
Reputation: 16834
The Rails Guide A Guide to Testing Rails Applications is a good place to start.
It covers the default test/unit
style of testing.
As suggested by @megas, the RSpec book is another place to look.
Agile Web Development with Rails is a great first book for any rails developer, covering the full process of building an application, testing it as you go.
Upvotes: 3