Sha256: 0e3a9a01edda9d1917f10e02a62bc3cabe2aa6e3fe885aadadcdb360ea1335d8

Contents?: true

Size: 751 Bytes

Versions: 6

Compression:

Stored size: 751 Bytes

Contents

require 'dm-core/spec/setup'
require 'dm-core/spec/lib/adapter_helpers'
require 'dm-core/spec/lib/pending_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')

# 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)
  config.include(DataMapper::Spec::PendingHelpers)
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ardm-serializer-1.2.2 spec/spec_helper.rb
dm-serializer-1.2.2 spec/spec_helper.rb
dm-serializer-1.2.1 spec/spec_helper.rb
dm-serializer-1.2.0 spec/spec_helper.rb
dm-serializer-1.2.0.rc2 spec/spec_helper.rb
dm-serializer-1.2.0.rc1 spec/spec_helper.rb