Skip to content

Commit

Permalink
Fix RSpec its method deprecation warning
Browse files Browse the repository at this point in the history
Deprecation Warnings:

Use of rspec-core's `its` method is deprecated. Use the rspec-its gem instead.
  • Loading branch information
jonatack committed Apr 18, 2015
1 parent b36bdc2 commit c09aa17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/ransack/adapters/active_record/context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ module ActiveRecord
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
Expand Down

0 comments on commit c09aa17

Please sign in to comment.