diff --git a/spec/integration/resource_spec.rb b/spec/integration/resource_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/integration/resource_spec.rb
+++ b/spec/integration/resource_spec.rb
@@ -133,7 +133,7 @@ if ADAPTER
         class Geek < Male
           property :awkward, Boolean, :default => true
         end
-
+        
         Geek.auto_migrate!(ADAPTER)
 
         repository(ADAPTER) do
@@ -146,6 +146,26 @@ if ADAPTER
           Maniac.create!(:name => 'William')
           Psycho.create!(:name => 'Norman')
         end
+        
+        class Flanimal
+          include DataMapper::Resource
+          property :id, Integer, :serial => true
+          property :type, Discriminator
+          property :name, String
+
+        end
+
+        class Sprog < Flanimal; end
+        
+        Flanimal.auto_migrate!(ADAPTER)
+        
+      end
+      
+      it "should test bug ticket #302" do
+        repository(ADAPTER) do
+          Sprog.create(:name => 'Marty')
+          Sprog.first(:name => 'Marty').should_not be_nil
+        end
       end
 
       it "should select appropriate types" do
added spec for ticket #<I>, passing