1
0
Fork 0
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:
Kevin Deisz 2018-08-24 16:11:29 -04:00
parent c14859513a
commit 1b98de8030
No known key found for this signature in database
GPG key ID: D78C2D8FB232C59C

View file

@ -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