Sha256: 0db29904755281831f169e7e6261e618e6fb79888767f77c9dad1c162f8bb522

Contents?: true

Size: 766 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-1.0.3 lib/rspeckled/plugins/shoulda.rb
rspeckled-1.0.2 lib/rspeckled/plugins/shoulda.rb
rspeckled-1.0.1 lib/rspeckled/plugins/shoulda.rb
rspeckled-1.0.0 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.64 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.63 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.62 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.61 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.60 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.59 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.58 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.57 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.56 lib/rspeckled/plugins/shoulda.rb
rspeckled-0.0.55 lib/rspeckled/plugins/shoulda.rb