diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-11-26 19:45:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 19:45:29 +0100 |
commit | b1f140ef2e5af605ea12d8ee1c932eaf728a398d (patch) | |
tree | 95d06393b221dcbaa2ffc63806e474912d70c828 /railties/test | |
parent | d7ab5710916f8ee58a970312e9bc9276022fe3a6 (diff) | |
parent | fbb8b373472e40aadd4c604d8574c0a82074a84a (diff) | |
download | rails-b1f140ef2e5af605ea12d8ee1c932eaf728a398d.tar.gz rails-b1f140ef2e5af605ea12d8ee1c932eaf728a398d.tar.bz2 rails-b1f140ef2e5af605ea12d8ee1c932eaf728a398d.zip |
Merge pull request #31229 from y-yagi/remove_field_ids_from_scaffold_form
Remove field ids from scaffold form
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/scaffold_generator_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/generators/scaffold_generator_test.rb b/railties/test/generators/scaffold_generator_test.rb index b6294c3b94..29426cd99f 100644 --- a/railties/test/generators/scaffold_generator_test.rb +++ b/railties/test/generators/scaffold_generator_test.rb @@ -471,8 +471,8 @@ class ScaffoldGeneratorTest < Rails::Generators::TestCase end assert_file "app/views/accounts/_form.html.erb" do |content| - assert_match(/^\W{4}<%= form\.text_field :name, id: :account_name %>/, content) - assert_match(/^\W{4}<%= form\.text_field :currency_id, id: :account_currency_id %>/, content) + assert_match(/^\W{4}<%= form\.text_field :name %>/, content) + assert_match(/^\W{4}<%= form\.text_field :currency_id %>/, content) end end @@ -495,8 +495,8 @@ class ScaffoldGeneratorTest < Rails::Generators::TestCase end assert_file "app/views/users/_form.html.erb" do |content| - assert_match(/<%= form\.password_field :password, id: :user_password %>/, content) - assert_match(/<%= form\.password_field :password_confirmation, id: :user_password_confirmation %>/, content) + assert_match(/<%= form\.password_field :password %>/, content) + assert_match(/<%= form\.password_field :password_confirmation %>/, content) end assert_file "app/views/users/index.html.erb" do |content| |