mongodb specs fixed for rails >= 4

This commit is contained in:
Zhomart Mukhamejanov 2014-10-06 14:20:43 -07:00
parent aeeaf597f6
commit 1fbbbaefd8
1 changed files with 6 additions and 4 deletions

View File

@ -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