Sha256: 6013f5910a613b5c7eaa36798da3a3fbcc8c77fbb614e8efe4368f15e040199f

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

require 'test_helper'

module PushType
  class NumberFieldTest < ActiveSupport::TestCase

    let(:field) { PushType::NumberField.new :foo }
    
    it { field.form_helper.must_equal :number_field }
    it { field.to_json(1).must_equal 1 }
    it { field.to_json('1').must_equal 1 }

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
push_type_core-0.5.3 test/fields/push_type/number_field_test.rb
push_type_core-0.5.2 test/fields/push_type/number_field_test.rb