mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
15b0dd1c6a
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.
10 lines
307 B
Ruby
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
|