Sha256: 686fec11505c926bef4743fc59ade016b2e40b30a40bc7d86e939ed2ab2c5aa2
Contents?: true
Size: 653 Bytes
Versions: 13
Compression:
Stored size: 653 Bytes
Contents
require 'helper' require 'rubyfox/sfsobject/core_xt' class RubyfoxSFSObjectCoreExtTest < RubyfoxCase context "bulk" do test "methods" do hash = { :key => "value"} assert_equal hash, hash.to_sfs.to_hash end end context "schema" do test "methods" do schema = { :key => String } hash = { :key => "value" } assert_equal hash, hash.to_sfs(schema).to_hash(schema) end test "fail w/o valid schema" do schema = nil hash = { :key => "value" } assert_raises NoMethodError, :message => /each/ do assert_equal hash, hash.to_sfs(schema).to_hash(schema) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems