diff --git a/spec/codeclimate_ci/compare_gpa_spec.rb b/spec/codeclimate_ci/compare_gpa_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/codeclimate_ci/compare_gpa_spec.rb
+++ b/spec/codeclimate_ci/compare_gpa_spec.rb
@@ -5,17 +5,20 @@ module CodeclimateCi
     let(:codeclimate_ci) { CodeclimateCi::CompareGpa.new('repo11', 'token1') }
 
     before do
-      allow_any_instance_of(ApiRequester).to receive(:branch_info)
+      allow_any_instance_of(ApiRequester).to receive(:branch_info).with('master')
         .and_return(
           'last_snapshot' => { 'gpa' => 3 }
         )
+
+      allow_any_instance_of(ApiRequester).to receive(:branch_info).with('another_branch')
+        .and_return(
+          'last_snapshot' => { 'gpa' => 2 }
+        )
     end
 
     context 'when branch is analyzed' do
-      before { allow_any_instance_of(GetGpa).to receive(:gpa).and_return(1) }
-
       it 'should not be worse' do
-        expect(codeclimate_ci.worse?('master')).to be_falsey
+        expect(codeclimate_ci.worse?('another_branch')).to be_truthy
       end
     end
   end
Fix spec in compare gpa spec