1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/support/unit/helpers/confirmation_matcher_helpers.rb

18 lines
590 B
Ruby
Raw Normal View History

require_relative '../record_validating_confirmation_builder'
require_relative '../record_builder_with_i18n_validation_message'
module UnitTests
module ConfirmationMatcherHelpers
def builder_for_record_validating_confirmation(options = {})
RecordValidatingConfirmationBuilder.new(options)
end
def builder_for_record_validating_confirmation_with_18n_message(options = {})
builder = builder_for_record_validating_confirmation(options)
RecordBuilderWithI18nValidationMessage.new(builder,
validation_message_key: :confirmation
)
end
end
end