Skip to content

Commit 00a3fed

Browse files
authoredSep 11, 2023
Correct several typos (#700)
1 parent 7443a53 commit 00a3fed

6 files changed

+9
-9
lines changed
 

‎CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Features:
310310
- Added support for time_zone_select
311311
- Accept multiple values, and objects as well, on `collection_check_boxes`
312312
checked option (#114)
313-
- Added support for hidding attribute name in errors_on helper (@datWav)
313+
- Added support for hiding attribute name in errors_on helper (@datWav)
314314
- Added support for additional class to the wrapper form_group by a field (@datWav)
315315
- Support showing error summaries when inline_errors is enabled (@rosswilson)
316316
- Name is now optional when creating static controls

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This repository offers experimental support support for a couple of ways to deve
7979
- Using `docker-compose`. This way is less tested, and is an attempt to make the Docker container a more complete environment where you can conveniently develop and release the gem.
8080
- Using just a simple Dockerfile. This way works for simple testing, but doesn't make it easy to release the gem, among other things.
8181

82-
Docker is _not_ requied to work on this gem.
82+
Docker is _not_ required to work on this gem.
8383

8484
#### Using `docker-compose`
8585

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ To add `data-` attributes to a collection of radio buttons, map your models to a
746746

747747
![Example 24](demo/doc/screenshots/bootstrap/readme/24_example.png "Example 24")
748748
```erb
749-
<%# Use the :first and :second elements of the array to be the value and label repsectively %>
749+
<%# Use the :first and :second elements of the array to be the value and label respectively %>
750750
<%- choices = @collection.map { |addr| [ addr.id, addr.street, { 'data-zip-code': addr.zip_code } ] } -%>
751751
752752
<%= f.collection_radio_buttons :misc, choices, :first, :second %>

‎test/bootstrap_fields_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class BootstrapFieldsTest < ActionView::TestCase
100100
assert_equivalent_html expected, bootstrap_form_for(@user) { |f| f.file_field(:misc) }
101101
end
102102

103-
test "errors are correctly displayed for belongs_to assoication fields" do
103+
test "errors are correctly displayed for belongs_to association fields" do
104104
@address.valid?
105105

106106
expected = <<~HTML

‎test/bootstrap_form_group_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
327327
assert_equivalent_html expected, output
328328
end
329329

330-
test "form_group accepts class thorugh options hash" do
330+
test "form_group accepts class through options hash" do
331331
output = @horizontal_builder.form_group :email, class: "mb-3 foo" do
332332
'<input class="form-control-plaintext" value="Bar">'.html_safe
333333
end
@@ -342,7 +342,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
342342
assert_equivalent_html expected, output
343343
end
344344

345-
test "form_group accepts class thorugh options hash without needing a name" do
345+
test "form_group accepts class through options hash without needing a name" do
346346
output = @horizontal_builder.form_group class: "mb-3 foo" do
347347
'<input class="form-control-plaintext" value="Bar">'.html_safe
348348
end
@@ -388,7 +388,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
388388
assert_equivalent_html expected, output
389389
end
390390

391-
test 'upgrade doc for form_group renders the "error" class and message corrrectly when object is invalid' do
391+
test 'upgrade doc for form_group renders the "error" class and message correctly when object is invalid' do
392392
@user.email = nil
393393
assert @user.invalid?
394394

@@ -410,7 +410,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
410410
assert_equivalent_html expected, output
411411
end
412412

413-
test "upgrade doc for form_group renders check box corrrectly when object is invalid" do
413+
test "upgrade doc for form_group renders check box correctly when object is invalid" do
414414
@user.errors.add(:misc, "Must select one.")
415415

416416
output = bootstrap_form_for(@user) do |f|

‎test/bootstrap_other_components_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class BootstrapOtherComponentsTest < ActionView::TestCase
8989
assert_equivalent_html expected, output
9090
end
9191

92-
test "custom control does't wrap given block in a p tag" do
92+
test "custom control doesn't wrap given block in a p tag" do
9393
output = @horizontal_builder.custom_control :email, extra: "extra arg" do
9494
"this is a test"
9595
end

0 commit comments

Comments
 (0)