Using Capybara with MiniTest::Spec
Let’s understand Using Capybara with MiniTest::Spec.
Set up your base class as with Test::Unit. (On Rails, the right base class could be something other than ActionDispatch::IntegrationTest.)
The capybara_minitest_spec gem (GitHub, rubygems.org) provides MiniTest::Spec expectations for Capybara. For example:
page.must_have_content(‘Important!’)
Make your resume stand out and become a Certified Capybara Testing Professional. Try free practice tests here!
A great career is just a certification away. So, practice and validate your skills to become Certified Capybara Testing Professional