Sha256: c42ae669d24a1db27b063e6950fe62c7098065a032e721be2f29bda7598c2b22

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 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')

# 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

6 entries across 6 versions & 1 rubygems

Version Path
dm-serializer-1.1.0.rc2 spec/spec_helper.rb
dm-serializer-1.1.0.rc1 spec/spec_helper.rb
dm-serializer-1.0.2 spec/spec_helper.rb
dm-serializer-1.0.1 spec/spec_helper.rb
dm-serializer-1.0.0 spec/spec_helper.rb
dm-serializer-1.0.0.rc3 spec/spec_helper.rb