Sha256: f641da875e8087e48b83ed81c8bd418878a9ba83a7703686a807714c92f6e2e7

Contents?: true

Size: 1013 Bytes

Versions: 3

Compression:

Stored size: 1013 Bytes

Contents

Capybara MiniTest Spec
======================

Define MiniTest::Spec expectations for Capybara node matchers.

Description
-----------

If you like using Capybara and RSpec, you're used to matchers like:

    page.should have_content('Title')

Now you can have similar functionality while using MiniTest::Spec:

    page.must_have_content('Title')

Install
-------

    gem install caypbara_minitest_spec

Compatibility
-------------

In theory, this should work with any version of Capybara, so the runtime dependency is not version specific. At the time of this writing, it was tested with Capybara 1.1.1.


Testing
-------

This gem was tested by basically copying the Capybara spec located in 'spec/rspec/matchers_spec.rb' and altering the test to run with MiniTest.
Capybara uses xpath as a submodule of the git repository. When adding this gem to gemtesters (http://test.rubygems.org/gems/capybara_minitest_spec), it sounded like too much trouble to check out the submodule, so I just used the regular gem.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capybara_minitest_spec-0.2.0 README.md
capybara_minitest_spec-0.1.3 README.md
capybara_minitest_spec-0.1.2 README.md