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.20 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.19 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.18 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.17 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.16 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.15 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.14 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.13 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.12 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.11 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.10 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.9 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.8 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.7 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.6 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.5 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.4 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.3 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.2 spec/support/field_option_helper.rb
dynamic_fieldsets-0.1.1 spec/support/field_option_helper.rb