diff --git a/spec/gitlab/build/check_spec.rb b/spec/gitlab/build/check_spec.rb
index 0ff0dfb3f14f1a946631b97d54b773fe8b806069_c3BlYy9naXRsYWIvYnVpbGQvY2hlY2tfc3BlYy5yYg==..42ef031c56f3700a7410a969837696d21dc617e7_c3BlYy9naXRsYWIvYnVpbGQvY2hlY2tfc3BlYy5yYg== 100644
--- a/spec/gitlab/build/check_spec.rb
+++ b/spec/gitlab/build/check_spec.rb
@@ -8,6 +8,10 @@
 
   describe 'is_ee?' do
     describe 'with environment variables' do
+      before do
+        stub_is_ee_version(false)
+      end
+
       describe 'ee variable' do
         it 'when ee=true' do
           stub_is_ee_env(true)