rspec/rspec-rails

View on GitHub
lib/rspec/rails/extensions/active_record/proxy.rb

Summary

Maintainability
A
0 mins
Test Coverage
RSpec.configure do |rspec|
  # Delay this in order to give users a chance to configure `expect_with`...
  rspec.before(:suite) do
    if defined?(RSpec::Matchers) && RSpec::Matchers.configuration.syntax.include?(:should) && defined?(ActiveRecord::Associations)
      RSpec::Matchers.configuration.add_should_and_should_not_to ActiveRecord::Associations::CollectionProxy
    end
  end
end