Permalink
Browse files

DataMapper test: Make sure we call finalize only if available.

  • Loading branch information...
tomas committed Apr 19, 2012
1 parent a0ef501 commit df19d8f316d144d4eaefdc5d5518ddb74117c9b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/datamapper.rb
View
@@ -78,4 +78,4 @@ class Song
DataMapper.auto_migrate!
end
-DataMapper.finalize
+DataMapper.finalize if DataMapper.respond_to?(:finalize)

0 comments on commit df19d8f

Please sign in to comment.