Match Rspec terminology
parent
094abdd093
commit
1d5643d53c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue