Sha256: 4b71c1344516fed96564bf6103b550519316637d149b01aed1eb958310bbe61f

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

# :enddoc:
require 'rspec/core'

RSpec.configure do |config|
  require 'shoulda/matchers/independent'
  config.include Shoulda::Matchers::Independent

  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

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/rspec.rb
challah-1.0.0.beta2 vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/rspec.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.5.6/lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-1.5.6 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-1.5.5 lib/shoulda/matchers/integrations/rspec.rb
shoulda-matchers-1.5.4 lib/shoulda/matchers/integrations/rspec.rb