From 6488e3a6f69ed32f98c5c35c0d437fad0346214f Mon Sep 17 00:00:00 2001 From: Eduardo Alencar Date: Mon, 26 Feb 2024 11:09:47 -0300 Subject: [PATCH] [skip ci] fix inline documentation about is_greater_than in validate_comparison_of matcher (#1616) --- .../active_model/validate_comparison_of_matcher.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/shoulda/matchers/active_model/validate_comparison_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_comparison_of_matcher.rb index 47a673f3a..da02a70ba 100644 --- a/lib/shoulda/matchers/active_model/validate_comparison_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_comparison_of_matcher.rb @@ -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 @@ -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