Sha256: fc2a777333baee61f5ca249d4260707faafa4e37865744695000dec1f5b1295c

Contents?: true

Size: 354 Bytes

Versions: 18

Compression:

Stored size: 354 Bytes

Contents

require 'test_helper'

class Superstore::Types::DateTypeTest < Superstore::Types::TestCase
  test 'encode' do
    assert_equal '2004-04-25', coder.encode(Date.new(2004, 4, 25))
  end

  test 'decode' do
    assert_equal Date.new(2004, 4, 25), coder.decode('2004-04-25')
  end

  test 'decoding a blank dates' do
    assert_nil coder.decode('')
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
superstore-1.2.0 test/unit/types/date_type_test.rb
superstore-1.1.4 test/unit/types/date_type_test.rb
superstore-1.1.3 test/unit/types/date_type_test.rb
superstore-1.1.2 test/unit/types/date_type_test.rb
superstore-1.1.1 test/unit/types/date_type_test.rb
superstore-1.1.0 test/unit/types/date_type_test.rb
superstore-1.0.12 test/unit/types/date_type_test.rb
superstore-1.0.11 test/unit/types/date_type_test.rb
superstore-1.0.10 test/unit/types/date_type_test.rb
superstore-1.0.9 test/unit/types/date_type_test.rb
superstore-1.0.8 test/unit/types/date_type_test.rb
superstore-1.0.7 test/unit/types/date_type_test.rb
superstore-1.0.6 test/unit/types/date_type_test.rb
superstore-1.0.5 test/unit/types/date_type_test.rb
superstore-1.0.4 test/unit/types/date_type_test.rb
superstore-1.0.3 test/unit/types/date_type_test.rb
superstore-1.0.2 test/unit/types/date_type_test.rb
superstore-1.0.0 test/unit/types/date_type_test.rb