mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused variables
This commit is contained in:
parent
2374f0efed
commit
b751c6ac3c
1 changed files with 1 additions and 3 deletions
|
@ -150,13 +150,11 @@ class MigrationTest < ActiveRecord::TestCase
|
|||
|
||||
def test_migration_next_migration_number_consistent_across_year_boundary
|
||||
last_year = Time.now.year - 1
|
||||
this_year = Time.now.year
|
||||
not_a_month = 14
|
||||
day_of_month = Time.now.day
|
||||
time = Time.now.utc.strftime("%H%M%S")
|
||||
last_year_number = "#{last_year}#{not_a_month}#{day_of_month}#{time}01"
|
||||
this_year_number = "#{this_year}#{not_a_month}#{day_of_month}#{time}01"
|
||||
assert_equal ActiveRecord::Migration.new.next_migration_number(last_year_number).to_s, last_year_number
|
||||
assert_equal last_year_number, ActiveRecord::Migration.new.next_migration_number(last_year_number).to_s
|
||||
end
|
||||
|
||||
def test_create_table_raises_if_already_exists
|
||||
|
|
Loading…
Reference in a new issue