From 7ae57183c7be5d096d2187743f72ecb46c5ad6b5 Mon Sep 17 00:00:00 2001 From: Eduardo Alencar Date: Sun, 25 Feb 2024 10:46:46 -0300 Subject: [PATCH] fix inline documentation about is_greater_than in validate_comparison_of matcher --- .../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