From db42c9f760093d6b9f4f512419a540c90646505a Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 21 Oct 2015 15:37:34 -0500 Subject: [PATCH] Fix service double stubbing MSP-13484 --- spec/lib/msf/core/exploit/http/server_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/lib/msf/core/exploit/http/server_spec.rb b/spec/lib/msf/core/exploit/http/server_spec.rb index ae34fc7297..b3c10e7af7 100644 --- a/spec/lib/msf/core/exploit/http/server_spec.rb +++ b/spec/lib/msf/core/exploit/http/server_spec.rb @@ -16,11 +16,9 @@ RSpec.describe Msf::Exploit::Remote::HttpServer do end let(:mock_service) do - mock_service = double 'service', - add_resource: nil, - :'server_name' => nil - - mock_service + double 'service', + add_resource: nil, + :'server_name=' => nil end before do