spec/spec_helper.rb in dm-serializer-1.1.0 vs spec/spec_helper.rb in dm-serializer-1.2.0.rc1
- old
+ new
@@ -1,20 +1,15 @@
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')
-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
@@ -25,6 +20,7 @@
DataMapper::Spec.setup
Spec::Runner.configure do |config|
config.extend(DataMapper::Spec::Adapters::Helpers)
+ config.include(DataMapper::Spec::PendingHelpers)
end