Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nikola Novakovic
4,171 PointsCapybara part of Rspec
Hey there! :)
I am currently doing the ODOT project on Ruby here at Treehouse and I was wondering, is "Capybara" just a feature from RSpec testing or totally new testing tool ?
I am pretty sure it is the first one , but just wanted to ask! :)
2 Answers
Maciej Czuchnowski
36,441 PointsCapybara can be treated as an add-on for RSpec. It uses RSpec syntax, adds its own methods, and is generally used for feature/acceptance tests. It allows you to simulate running the site and clicking things around in your tests (things like click_button or fill_in are Capybara's methods). I always imagine I'm putting a huge rodent in front of the computer, give it my mouse and keyboard, and tell it to test my site and then tell me what went wrong:
Nikola Novakovic
4,171 PointsThanks for the answer mate! :) Appreciate it!