diff --git a/spec/mongoid/dependencies_spec.rb b/spec/mongoid/dependencies_spec.rb index c94ee08..83029ce 100644 --- a/spec/mongoid/dependencies_spec.rb +++ b/spec/mongoid/dependencies_spec.rb @@ -1,6 +1,8 @@ -describe 'Ransack' do - it 'can be required without errors' do - output = `bundle exec ruby -e "require 'ransack'" 2>&1` - expect(output).to be_empty +unless ::Rails::VERSION::STRING >= '4' + describe 'Ransack' do + it 'can be required without errors' do + output = `bundle exec ruby -e "require 'ransack'" 2>&1` + expect(output).to be_empty + end end end