From b5782849e322f11d187c643df3ffc170f7be6f0f Mon Sep 17 00:00:00 2001 From: Daniel Orner Date: Thu, 12 Sep 2024 15:52:30 -0400 Subject: [PATCH] fix spec --- spec/gruf_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/gruf_spec.rb b/spec/gruf_spec.rb index 220011c..ed5d3ce 100644 --- a/spec/gruf_spec.rb +++ b/spec/gruf_spec.rb @@ -2,7 +2,7 @@ require_relative './test_service_services_pb' require 'gruf' -class ServerImpl < Gruf::Controllers::Base +class GrufServerImpl < Gruf::Controllers::Base bind ::Testdata::MyService::Service @@ -27,7 +27,7 @@ def test_4 class TestInterceptor < ::Gruf::Interceptors::ServerInterceptor def call - ServerImpl.intercepted = true + GrufServerImpl.intercepted = true yield end end @@ -37,7 +37,7 @@ def call RSpec.describe MyServiceController, type: :request do describe 'using get' do it 'should be successful and call interceptors' do - ServerImpl.intercepted = false + GrufServerImpl.intercepted = false get "/test/blah/xyz?test_id=abc" expect(response).to be_successful expect(response.parsed_body).to eq({ @@ -45,7 +45,7 @@ def call 'fullResponse' => %({"testId":"abc","foobar":"xyz"}), "ignoredKey" => '' }) - expect(ServerImpl.intercepted).to eq(true) + expect(GrufServerImpl.intercepted).to eq(true) end end end