`bundle exec rails -v` was taking seconds every time, making the test suite run very slow. This changes the code to compare the version against `ActiveRecord::VERSION`, which is going to be the same one as `rails -v`, making it much, much faster. Simplifies condition: we no longer support Rails < 4.2, so we test for `>= "5.0"` or fallback to `4.2` branch.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
matchers | Loading commit data... | |
assertions.rb | Loading commit data... | |
fake_model.rb | Loading commit data... | |
fake_rails.rb | Loading commit data... | |
mock_attachment.rb | Loading commit data... | |
mock_interpolator.rb | Loading commit data... | |
mock_url_generator_builder.rb | Loading commit data... | |
model_reconstruction.rb | Loading commit data... | |
test_data.rb | Loading commit data... | |
version_helper.rb | Loading commit data... |