Permalink
Browse files

Make sure to finalize the models before using them

  • Loading branch information...
1 parent a297c7c commit 7f415c365caae90d12bb5c8baeb9cceeb29f645c @dkubb dkubb committed Jul 28, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/spec_helper.rb
View
6 spec/spec_helper.rb
@@ -15,3 +15,9 @@
Pathname.glob((ROOT + 'spec/fixtures/**/*.rb').to_s).each { |file| require file }
FakeWeb.allow_net_connect = false
+
+Spec::Runner.configure do |config|
+ config.before :suite do
+ DataMapper.finalize
+ end
+end

0 comments on commit 7f415c3

Please sign in to comment.