Minitest::Capybara::Unit
MiniTest::Unit assertions for Capybara node matchers.
Installation
Add this line to your application's Gemfile:
gem 'minitest-capybara-unit'
And then execute:
$ bundle
Or install it yourself as:
$ gem install minitest-capybara-unit
Usage
Capybara | Minitest Capybara Unit |
---|---|
assert page.has_button? | assert_page_has_button |
refute page.has_button? | refute_page_has_button |
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request