Skip to content

Commit 4a3c62e

Browse files
authored
chore: Bump version to 6.2.0 (#1618)
1 parent 2663b51 commit 4a3c62e

File tree

4 files changed

+39
-3
lines changed

4 files changed

+39
-3
lines changed

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## 6.2.0 - 2024-03-15
4+
5+
### Bug fixes
6+
7+
* Allow beginless and endless ranges in validates_inclusion_of by @pjpires ([#1615])
8+
* Ensure uniqueness validation matcher works with STI by @matsales28 ([#1610])
9+
10+
### Features
11+
12+
* Add `against` method in allow_value matcher by @EduardoSCosta ([#1543])
13+
* Add support for `strict_loading` option in association matchers by @rhannequin and @laicuRoot ([#1607])
14+
* Add `have_delegated_type` matcher by @matsales28 ([#1606])
15+
* Add support for `foreign_type` qualifier on `AssociationMatcher` by @matsales28 ([#1609])
16+
17+
### Improvements
18+
19+
* Lazy load `ActionController` and `Routing` matchers for `ActionController::TestCase` by @ilianah ([#1613])
20+
* Call dynamic-readme reusable workflow by @stefannibrasil ([#1617])
21+
* Update dependencies by @matsales28 ([#1611])
22+
* Fix inline documentation for `is_greater_than` in `validate_comparison_of` matcher by @jeduardo824 ([#1616])
23+
* Fix forgotten colon in documentation by @hotoolong ([#1612])
24+
25+
[#1543]: https://github.com/thoughtbot/shoulda-matchers/pull/1543
26+
[#1606]: https://github.com/thoughtbot/shoulda-matchers/pull/1606
27+
[#1607]: https://github.com/thoughtbot/shoulda-matchers/pull/1607
28+
[#1609]: https://github.com/thoughtbot/shoulda-matchers/pull/1609
29+
[#1610]: https://github.com/thoughtbot/shoulda-matchers/pull/1610
30+
[#1611]: https://github.com/thoughtbot/shoulda-matchers/pull/1611
31+
[#1612]: https://github.com/thoughtbot/shoulda-matchers/pull/1612
32+
[#1613]: https://github.com/thoughtbot/shoulda-matchers/pull/1613
33+
[#1615]: https://github.com/thoughtbot/shoulda-matchers/pull/1615
34+
[#1616]: https://github.com/thoughtbot/shoulda-matchers/pull/1616
35+
[#1617]: https://github.com/thoughtbot/shoulda-matchers/pull/1617
36+
337
## 6.1.0 - 2024-01-19
438

539
### Bug fixes

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,10 @@ about any of them, make sure to [consult the documentation][rubydocs]!
385385
tests your `belongs_to` associations.
386386
* **[define_enum_for](lib/shoulda/matchers/active_record/define_enum_for_matcher.rb)**
387387
tests usage of the `enum` macro.
388-
* **[have_and_belong_to_many](lib/shoulda/matchers/active_record/association_matcher.rb#L827)**
388+
* **[have_and_belong_to_many](lib/shoulda/matchers/active_record/association_matcher.rb)**
389389
tests your `has_and_belongs_to_many` associations.
390+
* **[have_delegated_type](lib/shoulda/matchers/active_record/association_matcher.rb#L687)**
391+
tests usage of the `delegated_type` macro.
390392
* **[have_db_column](lib/shoulda/matchers/active_record/have_db_column_matcher.rb)**
391393
tests that the table that backs your model has a specific column.
392394
* **[have_db_index](lib/shoulda/matchers/active_record/have_db_index_matcher.rb)**

lib/shoulda/matchers/active_record/association_matcher.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def belong_to(name)
392392
#
393393
# # Minitest (Shoulda)
394394
# class VehicleTest < ActiveSupport::TestCase
395-
# should have_delegated_type(:drivable)
395+
# should have_delegated_type(:drivable)
396396
# end
397397
#
398398
# #### Qualifiers

lib/shoulda/matchers/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Shoulda
22
module Matchers
33
# @private
4-
VERSION = '6.1.0'.freeze
4+
VERSION = '6.2.0'.freeze
55
end
66
end

0 commit comments

Comments
 (0)