Sha256: 1510958ef86aca48f3d37896a63b787ec207c0b165592d2383656ebaa8840751

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

unless defined?(ActiveModel)
  raise RuntimeError, "ActiveModel is required to use Warp::ModelMatchers."
end

require "warp/model_matchers/matcher"

# require "warp/model_matchers/error_matcher"
require "warp/model_matchers/validation_matcher"

if defined?(ActiveRecord)
  require "warp/model_matchers/association_matcher"
  require "warp/model_matchers/attribute_matcher"
end

RSpec.configure do |config|
  config.include Warp::ModelMatchers
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
warp-1.2.3 lib/warp/model_matchers.rb
warp-1.2.2 lib/warp/model_matchers.rb
warp-1.2.1 lib/warp/model_matchers.rb
warp-1.2.0 lib/warp/model_matchers.rb