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 describe Context do
subject { Context.new(Person) } subject { Context.new(Person) }
if AR_version >= "3.1" if AR_version >= '3.1'
its(:alias_tracker) { it 'has an Active Record alias tracker method' do
should be_a ::ActiveRecord::Associations::AliasTracker expect(subject.alias_tracker)
} .to be_an ::ActiveRecord::Associations::AliasTracker
end
end end
describe '#relation_for' do describe '#relation_for' do