Sha256: 85a6ca7520a770f0a7f90961fc470f1459774e37173e844538e589770d69460b

Contents?: true

Size: 352 Bytes

Versions: 36

Compression:

Stored size: 352 Bytes

Contents

# Helper for the field_options to create valid attributes and other data used in multiple tests
module FieldOptionHelper
  # attributes for a field option
  # @returns [Hash] all attributes needed to pass validations
  def valid_attributes
    {
      :id => 1,
      :field_id => 1,
      :name => "Supervisor",
      :enabled => true
    }
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.1.0 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.16 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.15 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.14 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.13 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.12 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.11 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.10 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.9 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.8 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.7 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.6 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.5 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.4 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.3 spec/support/field_option_helper.rb
dynamic_fieldsets-0.0.2 spec/support/field_option_helper.rb