2014-10-26 20:51:42 -04:00
|
|
|
require_relative '../record_validating_confirmation_builder'
|
|
|
|
require_relative '../record_builder_with_i18n_validation_message'
|
2014-10-15 02:13:17 -04:00
|
|
|
|
2014-10-26 20:51:42 -04:00
|
|
|
module UnitTests
|
2014-10-14 01:48:27 -04:00
|
|
|
module ConfirmationMatcherHelpers
|
|
|
|
def builder_for_record_validating_confirmation(options = {})
|
|
|
|
RecordValidatingConfirmationBuilder.new(options)
|
|
|
|
end
|
|
|
|
|
2014-10-15 02:13:17 -04:00
|
|
|
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
|
2014-10-14 01:48:27 -04:00
|
|
|
end
|
|
|
|
end
|