Sha256: f19f6fa80c7ddade8d23dcd7c7cd07dec2ac1213e7cb5c6c28ce895f92a90fcd

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

# Remarkable core module
module Remarkable
  # A module that keeps all matchers added. This is useful because it allows
  # to include matchers in Test::Unit as well.
  module Matchers; end

  # Helper that includes required Remarkable modules into the given klass.
  def self.include_matchers!(base, klass)
    klass.send :extend, Remarkable::Macros

    if defined?(base::Matchers)
      klass.send :include, base::Matchers

      Remarkable::Matchers.send :extend, base::Matchers
      Remarkable::Matchers.send :include, base::Matchers
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remarkable-3.0.1 lib/remarkable/matchers.rb