Sha256: 9f028133cf377752a8755f41652da38723d260465e1173ff82ef444f42e8b426

Contents?: true

Size: 788 Bytes

Versions: 13

Compression:

Stored size: 788 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

13 entries across 13 versions & 1 rubygems

Version Path
rspeckled-2.0.1 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-2.0.0 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.4.0 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.3.1 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.3.0 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.2.1 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.2.0 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.1.3 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.1.2 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.1.1 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.1.0 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.0.5 lib/rspeckled/plugins/configuration/shoulda.rb
rspeckled-1.0.4 lib/rspeckled/plugins/configuration/shoulda.rb