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 b2821db8e5 Try to improve Rails 3.x tests working with Ruby 2.2
Not sure it’s worth it but giving it a shot, at least for Rails 3.2.
2015-01-08 00:17:33 +01:00

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