From 1d5643d53ce0b465ada3cfbba10d51e6e1f4c026 Mon Sep 17 00:00:00 2001 From: sinn3r Date: Mon, 4 Nov 2013 10:37:41 -0600 Subject: [PATCH] Match Rspec terminology --- spec/lib/msf/core/exploit/browser/server_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/lib/msf/core/exploit/browser/server_spec.rb b/spec/lib/msf/core/exploit/browser/server_spec.rb index 4072572ecf..4a99d37d41 100644 --- a/spec/lib/msf/core/exploit/browser/server_spec.rb +++ b/spec/lib/msf/core/exploit/browser/server_spec.rb @@ -11,16 +11,16 @@ describe Msf::Exploit::Remote::BrowserExploitServer do mod end - let(:mock_service) do - mock_service = double("service") - mock_service.stub(:server_name=) - mock_service.stub(:add_resource) + let(:service_double) do + service = double("service") + service.stub(:server_name=) + service.stub(:add_resource) - mock_service + service end before do - Rex::ServiceManager.stub(:start => mock_service) + Rex::ServiceManager.stub(:start => service_double) end describe ".get_module_resource" do