Sha256: e31a79807ed0abe884cb5fcc64f55d75d73aa6e7755def027dc29e880ecc8d47

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

require "rspec/rails"

module Katalyst
  module Kpop
    module Matchers
      class Base < RSpec::Rails::Matchers::BaseMatcher
        attr_reader :matched

        def matches?(actual)
          @matched = super
          @matched.present?
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katalyst-kpop-3.2.6 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.5 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.4 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.3 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.2 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.1 lib/katalyst/kpop/matchers/base.rb
katalyst-kpop-3.2.0 lib/katalyst/kpop/matchers/base.rb