Sha256: 06c5688d38be3ae611e02c92adaa28cd20c1b7742001a8870e471bd866057ef7

Contents?: true

Size: 782 Bytes

Versions: 2

Compression:

Stored size: 782 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.include(::Shoulda::Matchers::ActiveModel,  type: :model)
  config.include(::Shoulda::Matchers::ActiveRecord, type: :model)
end

::Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
  end
end

if defined?(::ActiveRecord)
  ::Shoulda::Matchers.configure do |config|
    config.integrate do |with|
      with.library :active_record
    end
  end
end

if defined?(::ActiveModel)
  ::Shoulda::Matchers.configure do |config|
    config.integrate do |with|
      with.library :active_model
    end
  end
end

if defined?(::ActionController)
  ::Shoulda::Matchers.configure do |config|
    config.integrate do |with|
      with.library :action_controller
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-2.1.0 lib/rspeckled/plugins/configuration/shoulda.rb