diff --git a/test/bootstrap_form_group_test.rb b/test/bootstrap_form_group_test.rb index e0c51c78e..b55a01f4d 100644 --- a/test/bootstrap_form_group_test.rb +++ b/test/bootstrap_form_group_test.rb @@ -415,9 +415,9 @@ class BootstrapFormGroupTest < ActionView::TestCase output = bootstrap_form_for(@user) do |f| f.form_group :email do - concat(f.radio_button(:misc, "primary school")) - concat(f.radio_button(:misc, "high school")) - concat(f.radio_button(:misc, "university", error_message: true)) + f.radio_button(:misc, "primary school") + + f.radio_button(:misc, "high school") + + f.radio_button(:misc, "university", error_message: true) end end diff --git a/test/bootstrap_form_test.rb b/test/bootstrap_form_test.rb index 4682d8e15..e018522f4 100644 --- a/test/bootstrap_form_test.rb +++ b/test/bootstrap_form_test.rb @@ -56,10 +56,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user) do |f| - concat(f.email_field(:email, layout: :horizontal)) - concat(f.check_box(:terms, label: "I agree to the terms")) - concat(f.collection_radio_buttons(:misc, collection, :id, :street, layout: :horizontal)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]], layout: :horizontal)) + f.email_field(:email, layout: :horizontal) + + f.check_box(:terms, label: "I agree to the terms") + + f.collection_radio_buttons(:misc, collection, :id, :street, layout: :horizontal) + + f.select(:status, [["activated", 1], ["blocked", 2]], layout: :horizontal) end assert_equivalent_xml expected, actual @@ -102,10 +102,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user) do |f| - concat(f.email_field(:email, layout: :inline)) - concat(f.check_box(:terms, label: "I agree to the terms", inline: true)) - concat(f.collection_radio_buttons(:misc, collection, :id, :street, layout: :inline)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]], layout: :inline)) + f.email_field(:email, layout: :inline) + + f.check_box(:terms, label: "I agree to the terms", inline: true) + + f.collection_radio_buttons(:misc, collection, :id, :street, layout: :inline) + + f.select(:status, [["activated", 1], ["blocked", 2]], layout: :inline) end assert_equivalent_xml expected, actual @@ -160,10 +160,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user, layout: :inline) do |f| - concat(f.email_field(:email)) - concat(f.check_box(:terms, label: "I agree to the terms")) - concat(f.collection_radio_buttons(:misc, collection, :id, :street)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]])) + f.email_field(:email) + + f.check_box(:terms, label: "I agree to the terms") + + f.collection_radio_buttons(:misc, collection, :id, :street) + + f.select(:status, [["activated", 1], ["blocked", 2]]) end assert_equivalent_xml expected, actual @@ -211,10 +211,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user, layout: :horizontal) do |f| - concat(f.email_field(:email)) - concat(f.check_box(:terms, label: "I agree to the terms")) - concat(f.collection_radio_buttons(:misc, collection, :id, :street)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]])) + f.email_field(:email) + + f.check_box(:terms, label: "I agree to the terms") + + f.collection_radio_buttons(:misc, collection, :id, :street) + + f.select(:status, [["activated", 1], ["blocked", 2]]) end assert_equivalent_xml expected, actual @@ -256,10 +256,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user, layout: :horizontal) do |f| - concat(f.email_field(:email, layout: :default)) - concat(f.check_box(:terms, label: "I agree to the terms")) - concat(f.collection_radio_buttons(:misc, collection, :id, :street, layout: :default)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]], layout: :default)) + f.email_field(:email, layout: :default) + + f.check_box(:terms, label: "I agree to the terms") + + f.collection_radio_buttons(:misc, collection, :id, :street, layout: :default) + + f.select(:status, [["activated", 1], ["blocked", 2]], layout: :default) end assert_equivalent_xml expected, actual @@ -302,10 +302,10 @@ class BootstrapFormTest < ActionView::TestCase collection = [Address.new(id: 1, street: "Foo"), Address.new(id: 2, street: "Bar")] actual = bootstrap_form_for(@user, layout: :horizontal) do |f| - concat(f.email_field(:email, layout: :inline)) - concat(f.check_box(:terms, label: "I agree to the terms", inline: true)) - concat(f.collection_radio_buttons(:misc, collection, :id, :street, layout: :inline)) - concat(f.select(:status, [["activated", 1], ["blocked", 2]], layout: :inline)) + f.email_field(:email, layout: :inline) + + f.check_box(:terms, label: "I agree to the terms", inline: true) + + f.collection_radio_buttons(:misc, collection, :id, :street, layout: :inline) + + f.select(:status, [["activated", 1], ["blocked", 2]], layout: :inline) end assert_equivalent_xml expected, actual