mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
b2821db8e5
Not sure it’s worth it but giving it a shot, at least for Rails 3.2.
12 lines
337 B
Ruby
12 lines
337 B
Ruby
ruby, rails = RUBY_VERSION, ::ActiveRecord::VERSION::STRING.first(3)
|
|
|
|
if %w(3.2 4.0 4.1).include?(rails) || (%w(3.0 3.1).include?(rails) && ruby < '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
|