Sha256: 56cd48dfd2c9d3ec1748c70d22e9fe59245ceb815f471ea95442e03ebfdf5edc

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

require_relative "check_method"

module ConfidenceCheck
  module ForRSpec
    include ConfidenceCheck::CheckMethod
    def exception_klasses
      [::RSpec::Expectations::ExpectationNotMetError ]
    end

    module WithCapybara
      include ConfidenceCheck::CheckMethod
      include ConfidenceCheck::ForRSpec
      def exception_klasses
        super + [ ::Capybara::CapybaraError ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
confidence-check-1.0.1 lib/confidence_check/for_rspec.rb
confidence-check-1.0.0 lib/confidence_check/for_rspec.rb