Registry / testing / rspec-html-matchers

rspec-html-matchers

JSON →
library0.10.0rbrubygemsunverified

Provides Nokogiri-based 'have_tag' and 'with_tag' matchers for RSpec with useful error messages.

gem install rspec-html-matchers
INSTALL
IMPORT
SIG · RSPEC-HTML-MATCHER
R
rspec-html-matchers
testingrubyv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RSpecHtmlMatchers
require 'rspec-html-matchers'

Use have_tag matcher in RSpec

require 'rspec-html-matchers' RSpec.describe 'my view' do include RSpecHtmlMatchers it 'has a tag' do expect('<div id="foo">bar</div>').to have_tag('div', with: { id: 'foo' }) end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.10.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
rspec-html-matchers — gem install rspec-html-matchers · libregistry