Upgrade Mongoid specs to RSpec 3 expect syntax

This commit is contained in:
Jon Atack 2015-07-26 20:49:21 +02:00
parent 87115c27c1
commit d296caa840
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,9 @@ module Ransack
context 'with scopes' do
before do
Person.stub :ransackable_scopes => [:active, :over_age]
allow(Person).to receive_messages(
ransackable_scopes: [:active, :over_age, :of_age]
)
end
it "applies true scopes" do

View File

@ -26,7 +26,7 @@ module Ransack
Ransack.configure { |config| config.ignore_unknown_conditions = true }
end
specify { subject.should be_nil }
specify { expect(subject).to be_nil }
end
end
end