Sha256: df59908aa8183205a486bd6dac2053fd6ffba5e358d5425613f493e73de380b1

Contents?: true

Size: 186 Bytes

Versions: 5

Compression:

Stored size: 186 Bytes

Contents

shared_context 'type setup' do |type_name|
  let(:model) { stub_model { attribute :column, type_name.constantize } }

  def typecast(value)
    model.new(column: value).column
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
granite-form-0.6.0 spec/support/shared/type_examples.rb
granite-form-0.5.0 spec/support/shared/type_examples.rb
granite-form-0.4.0 spec/support/shared/type_examples.rb
granite-form-0.3.0 spec/support/shared/type_examples.rb
granite-form-0.2.0 spec/support/shared/type_examples.rb