spec/slavery_spec.rb in slavery-1.2.0 vs spec/slavery_spec.rb in slavery-1.3.0

- old
+ new

@@ -55,11 +55,13 @@ it 'works with scopes' do User.count.should == 2 User.on_slave.count.should == 1 - User.scoped.to_a.size.should == 2 - User.on_slave.scoped.to_a.size.should == 1 + # Why where(nil)? + # http://stackoverflow.com/questions/18198963/with-rails-4-model-scoped-is-deprecated-but-model-all-cant-replace-it + User.where(nil).to_a.size.should == 2 + User.on_slave.where(nil).to_a.size.should == 1 end describe 'configuration' do before do # Backup connection and configs