Sha256: c5e870b84f35bc34bfb783634bbc0600230919755893335208027765dd28d752
Contents?: true
Size: 827 Bytes
Versions: 6
Compression:
Stored size: 827 Bytes
Contents
FactoryBot.define do factory :answer, class: Helena::Answer do sequence(:code) { |n| "answer_#{n}" } sequence(:ip_address) { Faker::Internet.ip_v4_address } end factory :string_answer, class: Helena::StringAnswer do sequence(:code) { |n| "string_answer_#{n}" } sequence(:value) { Faker::Lorem.word } sequence(:ip_address) { Faker::Internet.ip_v4_address } end factory :integer_answer, class: Helena::IntegerAnswer do sequence(:code) { |n| "integer_answer_#{n}" } sequence(:value) { rand 99 } sequence(:ip_address) { Faker::Internet.ip_v4_address } end factory :boolean_answer, class: Helena::BooleanAnswer do sequence(:code) { |n| "boolean_answer_#{n}" } sequence(:value) { [true, false].sample } sequence(:ip_address) { Faker::Internet.ip_v4_address } end end
Version data entries
6 entries across 6 versions & 1 rubygems