Sha256: 4257f6465a9837ddb7da2bc2e0634eac34a7053fa62e771fc0df3475161153d5

Contents?: true

Size: 421 Bytes

Versions: 6

Compression:

Stored size: 421 Bytes

Contents

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

# 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, type: :model
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
warp-1.5.0 lib/warp/model_matchers.rb
warp-1.4.0 lib/warp/model_matchers.rb
warp-1.3.3 lib/warp/model_matchers.rb
warp-1.3.2 lib/warp/model_matchers.rb
warp-1.3.1 lib/warp/model_matchers.rb
warp-1.3.0 lib/warp/model_matchers.rb