Skip to content

Commit

Permalink
[skip ci] fix inline documentation about is_greater_than in validate_…
Browse files Browse the repository at this point in the history
…comparison_of matcher (#1616)
  • Loading branch information
jeduardo824 authored Feb 26, 2024
1 parent a078b46 commit 6488e3a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ module ActiveModel
#
# # RSpec
# RSpec.describe Person, type: :model do
# it { should validate_comparison_of(:gpa).greater_than(10) }
# it { should validate_comparison_of(:gpa).is_greater_than(10) }
# end
#
# # Minitest (Shoulda)
# class PersonTest < ActiveSupport::TestCase
# should validate_comparison_of(:gpa).greater_than(10)
# should validate_comparison_of(:gpa).is_greater_than(10)
# end
#
# #### Qualifiers
Expand All @@ -39,14 +39,14 @@ module ActiveModel
# RSpec.describe Person, type: :model do
# it do
# should validate_comparison_of(:number_of_dependents).
# greater_than(0).
# is_greater_than(0).
# on(:create)
# end
# end
#
# # Minitest (Shoulda)
# class PersonTest < ActiveSupport::TestCase
# should validate_comparison_of(:number_of_dependents).greater_than(0).on(:create)
# should validate_comparison_of(:number_of_dependents).is_greater_than(0).on(:create)
# end
#
# ##### is_less_than
Expand Down

0 comments on commit 6488e3a

Please sign in to comment.