Sha256: 724c508ebd68605ae46d7a9c18f2c18dd4e4fd2376687f192198cb5a1055c6cc

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

# :enddoc:
require 'rspec/core'

RSpec.configure do |config|
  if defined?(::ActiveRecord)
    require 'shoulda/matchers/active_record'
    require 'shoulda/matchers/active_model'
    config.include Shoulda::Matchers::ActiveRecord
    config.include Shoulda::Matchers::ActiveModel

  elsif defined?(::ActiveModel)
    require 'shoulda/matchers/active_model'
    config.include Shoulda::Matchers::ActiveModel
  end

  if defined?(::ActionController)
    require 'shoulda/matchers/action_controller'
    config.include Shoulda::Matchers::ActionController
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
mcmire-shoulda-matchers-2.5.0 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.5.0 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.4.0 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.4.0.rc1 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.3.0 lib/shoulda/matchers/integrations/rspec.rb
challah-1.0.0 vendor/bundle/gems/shoulda-matchers-2.2.0/lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.2.0 lib/shoulda/matchers/integrations/rspec.rb
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.1.0 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-2.0.0 lib/shoulda/matchers/integrations/rspec.rb