1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
activerecord-hackery--ransack/spec/ransack/dependencies_spec.rb
jonatack 15b0dd1c6a Stop testing Rails 3.0 with Ruby 2.2.
This will slim down the now-extensive travis
suite matrix and speed it up.

The next tests to trim out will be Rails 3.1
with Ruby 2.2.
2015-01-08 11:01:09 +01:00

10 lines
307 B
Ruby

rails = ::ActiveRecord::VERSION::STRING.first(3)
if %w(3.2 4.0 4.1).include?(rails) || rails == '3.1' && RUBY_VERSION < '2.2'
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