Sha256: fd920e350f76ee885c1190b039d694b6db0a7a0f9a5ab2b32dcf349bea68fdf7
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
require 'test_helper' module PushType class DateFieldTest < ActiveSupport::TestCase let(:field) { PushType::DateField.new :foo } let(:val) { Date.today.to_s } it { field.template.must_equal 'date' } it { field.form_helper.must_equal :date_field } it { field.from_json(val).must_be_instance_of Date } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_type_core-0.5.3 | test/fields/push_type/date_field_test.rb |
push_type_core-0.5.2 | test/fields/push_type/date_field_test.rb |