8b63d3d467
This reverts commit 9b35b0e13a.
This should not land on master until the Metasploit Pro folks (@trosen-r7
and friends) get their Meterpreter path specifications working the
same way as Framework's does.
34 lines
731 B
Ruby
34 lines
731 B
Ruby
require 'spec_helper'
|
|
require 'rex/post/meterpreter'
|
|
require 'rex/post/meterpreter/extensions/stdapi/ui'
|
|
|
|
describe Rex::Post::Meterpreter::Extensions::Stdapi::UI do
|
|
|
|
it "should be available" do
|
|
expect(described_class).to eq(Rex::Post::Meterpreter::Extensions::Stdapi::UI)
|
|
end
|
|
|
|
describe "#screenshot" do
|
|
|
|
before(:each) do
|
|
@client = double("client")
|
|
end
|
|
|
|
let(:ui) { described_class.new(@client) }
|
|
it 'should respond to #screenshot' do
|
|
expect(ui).to respond_to(:screenshot)
|
|
end
|
|
|
|
it 'should return itself' do
|
|
expect(ui).to be_kind_of(described_class)
|
|
end
|
|
|
|
it 'should have an instance variable' do
|
|
expect(ui.instance_variables).to include(:@client)
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|