Sha256: b9666fc212a0982f39437b278c494e3c860adb316335998a5ade4d9f32134a3b
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
# frozen_string_literal: true require 'capybara/rspec/matchers/base' module Capybara module RSpecMatchers module Matchers class HaveStyle < WrappedElementMatcher def element_matches?(el) el.assert_style(*@args) end def does_not_match?(_actual) raise ArgumentError, 'The have_style matcher does not support use with not_to/should_not' end def description 'have style' end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems