Skip to content
Browse files

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

  • Loading branch information...
1 parent a0ef501 commit df19d8f316d144d4eaefdc5d5518ddb74117c9b9 @tomas committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/datamapper.rb
View
2 test/datamapper.rb
@@ -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.
Something went wrong with that request. Please try again.