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:
parent
b36bdc23b1
commit
c09aa17795
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue