diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-04-30 16:11:24 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-04-30 16:11:24 -0300 |
commit | 8ef45853034269396435143d1e7fa99354616863 (patch) | |
tree | 5584bcab167532f24a1cb03ad05caeb7d84d9e31 /activerecord/test | |
parent | e7de870ec75664c723bc3af8a24ed01f79267e07 (diff) | |
parent | 76f7da0c6516bed5d1375b5d55dde71ba71df4f7 (diff) | |
download | rails-8ef45853034269396435143d1e7fa99354616863.tar.gz rails-8ef45853034269396435143d1e7fa99354616863.tar.bz2 rails-8ef45853034269396435143d1e7fa99354616863.zip |
Merge pull request #24791 from maclover7/jm-rm-ar-rails-mention
Replace `Rails.version.to_f` with Active Record
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 5a6d2ce80c..a4b0de3f4e 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -69,6 +69,10 @@ class MigrationTest < ActiveRecord::TestCase ActiveRecord::Migration.verbose = @verbose_was end + def test_migration_version_matches_component_version + assert_equal ActiveRecord::VERSION::STRING.to_f, ActiveRecord::Migration.current_version + end + def test_migrator_versions migrations_path = MIGRATIONS_ROOT + "/valid" old_path = ActiveRecord::Migrator.migrations_paths |