Sha256: 3cb6411af3cfaafb2a036410c0752bab45ab52eff0cf57933794aa034f3d61dc

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-rails-4.0.1 lib/rspec/rails/extensions/active_record/proxy.rb
rspec-rails-4.0.0 lib/rspec/rails/extensions/active_record/proxy.rb
rspec-rails-4.0.0.rc1 lib/rspec/rails/extensions/active_record/proxy.rb
rspec-rails-4.0.0.beta4 lib/rspec/rails/extensions/active_record/proxy.rb