diff --git a/spec/semipublic/query/conditions/comparison_spec.rb b/spec/semipublic/query/conditions/comparison_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/semipublic/query/conditions/comparison_spec.rb
+++ b/spec/semipublic/query/conditions/comparison_spec.rb
@@ -1178,7 +1178,7 @@ describe DataMapper::Query::Conditions::InclusionComparison do
 
         describe 'with an Hash value' do
           before do
-            @comparison = DataMapper::Query::Conditions::Comparison.new(@slug, @relationship, :id => 1)
+            @comparison = DataMapper::Query::Conditions::Comparison.new(@slug, @relationship, :id => @parent.id)
           end
 
           it { should be_kind_of(DataMapper::Collection) }
replace constant 1 with parent id in comparison_spec as otherwise OracleAdapter test is failing