1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

Fix RSpec its method deprecation warning

Deprecation Warnings:

Use of rspec-core's `its` method is deprecated. Use the rspec-its gem instead.
This commit is contained in:
Jon Atack 2015-04-18 21:15:27 +05:30
parent b36bdc23b1
commit c09aa17795

View file

@ -9,10 +9,11 @@ module Ransack
describe Context do
subject { Context.new(Person) }
if AR_version >= "3.1"
its(:alias_tracker) {
should be_a ::ActiveRecord::Associations::AliasTracker
}
if AR_version >= '3.1'
it 'has an Active Record alias tracker method' do
expect(subject.alias_tracker)
.to be_an ::ActiveRecord::Associations::AliasTracker
end
end
describe '#relation_for' do