Back to Browse

Capybara Testing Basics with RSpec (Test Driven RSpec, Ep 05)

12.0K views
Nov 13, 2017
15:03

An introduction to using Capybara with RSpec to test web pages in a Rails app. Support my screencasts by buying me a coffee: https://www.buymeacoffee.com/brettchalupa This episode covers: - Configuring Capybara with RSpec - Visiting pages - Expecting content to be present - Clicking links - Testing the current URL If you're interested in learning more about Capybara, the project's README is great: https://github.com/teamcapybara/capybara I'll also be covering it more in future episodes. Code from the episode: https://github.com/brettchalupa/test-driven-rspec/tree/master/episode-05 Episode blog post: https://code.brettchalupa.com/test-driven-rspec-episode-05 Software used: - Ruby 2.4.2 - RSpec 3.6.1 - Capybara 2.15.4 - Rails 5.1.4 - Mac OS - iTerm 2 - Vim - Tmux Let me know if you run into any issues or have any specific topics you'd like covered. Follow along online: - Website: https://code.brettchalupa.com/ - Twitter: https://twitter.com/brettchalupa

Download

0 formats

No download links available.

Capybara Testing Basics with RSpec (Test Driven RSpec, Ep 05) | NatokHD