signature.rb 334 B

1234567891011121314
  1. FactoryBot.define do
  2. sequence :test_signature_name do |n|
  3. "Test signature #{n}"
  4. end
  5. end
  6. FactoryBot.define do
  7. factory :signature do
  8. name { generate(:test_signature_name) }
  9. body '#{user.firstname} #{user.lastname}'.text2html # rubocop:disable Lint/InterpolationCheck
  10. created_by_id 1
  11. updated_by_id 1
  12. end
  13. end