CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/lib/rex/proto/smb/simple_client_spec.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
require 'spec_helper'
4
require 'rex/proto/smb/simple_client'
5
6
RSpec.describe Rex::Proto::SMB::SimpleClient do
7
let(:host) { '127.0.0.1' }
8
let(:port) { 1234 }
9
let(:info) { "#{host}:#{port}" }
10
11
subject do
12
socket = instance_double(Rex::Socket, peerinfo: info)
13
client = described_class.new(socket)
14
client
15
end
16
17
it_behaves_like 'session compatible client'
18
end
19
20