mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Convert over the rest of the blacklist references
This commit is contained in:
parent
c14859513a
commit
1b98de8030
1 changed files with 2 additions and 2 deletions
|
@ -51,12 +51,12 @@ class MigrationGeneratorTest < Rails::Generators::TestCase
|
|||
end
|
||||
|
||||
def test_add_migration_with_table_having_from_in_title
|
||||
migration = "add_email_address_to_blacklisted_from_campaign"
|
||||
migration = "add_email_address_to_restricted_list_from_campaign"
|
||||
run_generator [migration, "email_address:string"]
|
||||
|
||||
assert_migration "db/migrate/#{migration}.rb" do |content|
|
||||
assert_method :change, content do |change|
|
||||
assert_match(/add_column :blacklisted_from_campaigns, :email_address, :string/, change)
|
||||
assert_match(/add_column :restricted_list_from_campaigns, :email_address, :string/, change)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue