Method Name / Reserved Word Attributes
If your attributes conflict with existing methods or reserved words (all
methods in the
DefinitionProxy
class) you can define them with add_attribute
.
factory :dna do
add_attribute(:sequence) { 'GATTACA' }
end
factory :payment do
add_attribute(:method) { 'paypal' }
end