Sha256: dbf12e3d0e56a6717331c520f25661f87b70a6775b9e92d33d6e32c7778e65a1
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
require 'dm-core/spec/setup' require 'dm-core/spec/lib/adapter_helpers' require 'dm-validations' # FIXME: must be required before dm-serializer require 'dm-serializer' require 'dm-migrations' require File.expand_path('spec/lib/serialization_method_shared_spec') class Array def to_hash DataMapper::Ext::Array.to_hash(self) end end # require fixture resources SPEC_ROOT = Pathname(__FILE__).dirname.expand_path Pathname.glob((SPEC_ROOT + 'fixtures/**/*.rb').to_s).each { |file| require file } class SerializerTestHarness def test(object, *args) deserialize(object.send(method_name, *args)) end end DataMapper::Spec.setup Spec::Runner.configure do |config| config.extend(DataMapper::Spec::Adapters::Helpers) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-serializer-1.1.0 | spec/spec_helper.rb |
dm-serializer-1.1.0.rc3 | spec/spec_helper.rb |