diff --git a/spec/public/associations_spec.rb b/spec/public/associations_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/public/associations_spec.rb
+++ b/spec/public/associations_spec.rb
@@ -28,6 +28,14 @@ describe DataMapper::Associations do
   end
 
   describe "#has" do
+    before do
+      class Car
+        def self.warn
+          # silence warnings
+        end
+      end
+    end
+
     def n
       Car.n
     end
Added Car.warn() method to silence warnings from has() in spec output