Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a rudimentary .rvmrc configuration.

  • Loading branch information...
commit e8554a232df1cfc27d400c6a8908ff68471bc931 1 parent d88af7b
Emmanuel Gomez emmanuel authored
Showing with 30 additions and 0 deletions.
  1. +1 −0  .rvmrc
  2. +29 −0 spec/spec_helper.rb
1  .rvmrc
View
@@ -0,0 +1 @@
+rvm use @aequitas --create
29 spec/spec_helper.rb
View
@@ -0,0 +1,29 @@
+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.finalize.auto_migrate!
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.