CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/lib/rex/proto/smb/simple_client_spec.rb
Views: 11788
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