Sha256: afe9453cbf2d57d067b1e5cea57783ca246cfd43c9b6631fbf86c95d2eec21cf
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
require "helper" class TestKey < Test::Unit::TestCase test "cast to array" do key = Key.new :name, String assert_equal ["1", "2", "three"], key.typecast([1, "2", "three"]) assert_equal ["1", "three"], key.typecast([1, nil, "three"]) assert_equal nil, key.typecast([""]) assert_equal nil, key.typecast([nil]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
presenter-0.1.1 | test/test_key.rb |
presenter-0.1.0 | test/test_key.rb |