Sha256: 7fd3a6212c22709396749cea07d570ce38ce923264a2ab975f083e92c43cde99

Contents?: true

Size: 397 Bytes

Versions: 21

Compression:

Stored size: 397 Bytes

Contents

# Helper for the field model to create valid attributes
module FieldHelper
  # this has issues with not being able to set type
  # I am manually setting it where it is needed to avoid problems
  def valid_attributes
    {
      :name => "Test field name",
      :label => "Test field label",
      :type => DynamicFieldsets::Field,
      :required => true,
      :enabled => true,
    }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.1.20 spec/support/field_helper.rb
dynamic_fieldsets-0.1.19 spec/support/field_helper.rb
dynamic_fieldsets-0.1.18 spec/support/field_helper.rb
dynamic_fieldsets-0.1.17 spec/support/field_helper.rb
dynamic_fieldsets-0.1.16 spec/support/field_helper.rb
dynamic_fieldsets-0.1.15 spec/support/field_helper.rb
dynamic_fieldsets-0.1.14 spec/support/field_helper.rb
dynamic_fieldsets-0.1.13 spec/support/field_helper.rb
dynamic_fieldsets-0.1.12 spec/support/field_helper.rb
dynamic_fieldsets-0.1.11 spec/support/field_helper.rb
dynamic_fieldsets-0.1.10 spec/support/field_helper.rb
dynamic_fieldsets-0.1.9 spec/support/field_helper.rb
dynamic_fieldsets-0.1.8 spec/support/field_helper.rb
dynamic_fieldsets-0.1.7 spec/support/field_helper.rb
dynamic_fieldsets-0.1.6 spec/support/field_helper.rb
dynamic_fieldsets-0.1.5 spec/support/field_helper.rb
dynamic_fieldsets-0.1.4 spec/support/field_helper.rb
dynamic_fieldsets-0.1.3 spec/support/field_helper.rb
dynamic_fieldsets-0.1.2 spec/support/field_helper.rb
dynamic_fieldsets-0.1.1 spec/support/field_helper.rb