Sha256: 22025fad4b68868e4589f718aeebeef9b33d33c6ebe93825d003b3350558731c
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
require 'dm-core/spec/setup' require 'dm-core/spec/lib/adapter_helpers' require 'dm-validations' require 'dm-types' require 'dm-migrations' class Hash def except(*keys) hash = dup keys.each { |key| hash.delete(key) } hash end end SPEC_ROOT = Pathname(__FILE__).dirname Pathname.glob((SPEC_ROOT + 'fixtures/**/*.rb').to_s).each { |file| require file } Pathname.glob((SPEC_ROOT + 'integration/shared/**/*.rb').to_s).each { |file| require file } DataMapper::Spec.setup DataMapper.finalize Spec::Runner.configure do |config| config.extend(DataMapper::Spec::Adapters::Helpers) config.before :suite do DataMapper.auto_migrate! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-1.1.0 | spec/spec_helper.rb |
dm-validations-1.1.0.rc3 | spec/spec_helper.rb |