Files
metasploit-gs/spec/lib/rex/post/meterpreter/extensions/stdapi/ui_spec.rb
T
David Maloney c6656e4031 example_group and hook_scope conversions
not strictly required, these conversions keep us
up to date with latest rspec conventions and best practices
which will prevent use from having to convert them when they become
deprecated later
2015-12-31 16:56:13 -06:00

34 lines
740 B
Ruby

require 'spec_helper'
require 'rex/post/meterpreter'
require 'rex/post/meterpreter/extensions/stdapi/ui'
RSpec.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(:example) 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