use sane default value for custom_field factory

pull/1186/head
Philipp Tessenow 12 years ago
parent ba7001927d
commit 38289e1b5a
  1. 12
      spec/factories/custom_field_factory.rb

@ -2,15 +2,15 @@ FactoryGirl.define do
factory :custom_field do factory :custom_field do
name "Custom Field" name "Custom Field"
regexp "" regexp ""
is_required "0" is_required false
min_length "0" min_length false
default_value "" default_value ""
max_length "0" max_length false
editable "1" editable true
possible_values "" possible_values ""
visible "1" visible true
field_format "bool" field_format "bool"
factory :user_custom_field do factory :user_custom_field do
sequence(:name) { |n| "User Custom Field #{n}" } sequence(:name) { |n| "User Custom Field #{n}" }

Loading…
Cancel
Save